[英]trying to install pm2 via npm -g but not installed after finished
When we try and install pm2 it doesnt show any pertidular errors, but its not available afterwards. 当我们尝试安装pm2时,它没有显示任何异常错误,但此后不可用。
npm install pm2 -g
npm WARN install Could't install optional dependency: Unsupported
C:\c\Users\westd\.node\pm2-dev -> C:\c\Userswestd\.node\node_modules\pm2\bin\pm2-dev
C:\c\Users\westd\.node\pm2 -> C:\c\Userswestd\.node\node_modules\pm2\bin\pm2
npm WARN install Couldn't install optional dependency: Unsupported
C:\c\Users\westd\.node\pm2 -> C:\c\Users\westd\.node\node_modules\pm2\bin\pm2
C:\c\Users\westd\.node\pm2-dev -> C:\c\Users\westd\.node\node_modules\pm2\bin\pm
2-dev
C:\c\Users\westd\.node
└─┬ pm2@1.0.0
└── ikt@0.0.0 (git+http://ikt.pm2.io/ikt.git#3325a3e39a502418dc2e2e4bf21529cb
bde96228)
then i try and run pm2, and it doesn't exist?? 然后我尝试运行pm2,它不存在?
help needed? 需要帮助?
the problem was that the config file had been set with a weird location, so it was installing to C:/c/users/me ..... 问题是该配置文件已设置了一个奇怪的位置,因此它正在安装到C:/ c / users / me .....
we altered this and it worked correctly. 我们对此进行了更改,并且可以正常运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.