Using Synology and npm installation - I cannot get work the tool.
micha@Diskstation:/volume1/web$ sudo npm install -g pm2
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha1-QFUCsAfzGcP0cXXER0UnMA8qta0 = integrity checksum failed when using sha1: wanted sha1-QFUCsAfzGcP0cXXER0UnMA8qta0= but got sha512-zr6QQnzLt3Ja0t0XI8gws2kn7zV2p0l/D3k reNvS6hFZhVU5g+uY/30l42jbgt0XGcNBEmBDGJR71J692V92tA==. (260 bytes)
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
/volume1/@appstore/Node.js_v8/usr/local/bin/pm2 -> /volume1/@appstore/Node.js_v8/usr/local/lib/node_modules/pm2/bin/pm2
/volume1/@appstore/Node.js_v8/usr/local/bin/pm2-dev -> /volume1/@appstore/Node.js_v8/usr/local/lib/node_modules/pm2/bin/pm2-dev
/volume1/@appstore/Node.js_v8/usr/local/bin/pm2-docker -> /volume1/@appstore/Node.js_v8/usr/local/lib/node_modules/pm2/bin/pm2-docker
/volume1/@appstore/Node.js_v8/usr/local/bin/pm2-runtime -> /volume1/@appstore/Node.js_v8/usr/local/lib/node_modules/pm2/bin/pm2-runtime
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/pm2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"o s":"linux","arch":"x64"})
+ [email protected]
added 310 packages in 15.942s
micha@Diskstation:/volume1/web$ pm2
-sh: pm2: command not found
Maybe somebody have an idea what is going wrong here?
I think it maybe Synology related.
Thanks!
Michael
Maybe sudo pm2 ls ?
No, I also tried to install / use as root, same result...
Not the best way but you can run it by calling /volume1/@appstore/Node.js_v8/usr/local/bin/pm2
sudo vim /etc/profile
PATH: /volume1/@appstore/Node.js_v8/usr/local/lib/node_modules/PM2/bin
add this line PATH variable without PATH
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
sudo vim /etc/profilePATH: /volume1/@appstore/Node.js_v8/usr/local/lib/node_modules/PM2/binadd this line PATH variable without PATH