pm2-installer
pm2-installer copied to clipboard
During offline installation : pm2-logrotate: No such file or directory
Description
During the pm2 offline installation on Centos, pm2 is installed but with the following error :
WARNING: Bundle was created on linux-3.10.0-1160.59.1.el7.x86_64 but this is linux-3.10.0-1160.el7.x86_64.
npm ERR! code ENOTCACHED
npm ERR! request to https://registry.npmjs.org/pm2/-/pm2-5.2.0.tgz failed: cache mode is 'only-if-cached' but no cached response is available.
npm ERR! A complete log of this run can be found in:
npm ERR! /opt/keos/aristote/pm2-installer-main/.npm_cache/_logs/2022-04-12T01_18_09_801Z-debug-0.log
./src/unix/setup.sh: line 51: cd: /usr/local/lib/node_modules/pm2-logrotate/: No such file or directory",
Steps to Reproduce
- On an online CentOS 7, I install node v16.14.1 / npm 8.5.0
- I download the main branch of pm2-installer
- I untar it, I launch
npm run bundle
- I tar it and copy it to an identical oflline CentOS
- I run
npm run setup
Environment
> [email protected] info
> node ./src/bundle-info/current.js
Running on: 4/11/2022, pm2-installer 3.3.1 with node v16.14.1 and npm 8.5.0 on linux-3.10.0-1160.el7.x86_64.