Alibaba cloud Q & A 2022-02-13 07:22:02 阅读数:440
It is installed offline ,pm2-4.5.1.tar.gz Installed in root Under the folder , And then we did In -s /root/pm2/bin/pm2 /usr/local/bin/pm2 after , perform pm2 -v, The following error was reported ：
How to solve the error ？
Hello! , Offline installation needs to solve the dependency problem by itself , and npm The installation will automatically solve the dependency problem . It's possible that you haven't solved the dependency problem . You can find a machine that can connect to the Internet , stay pm2 Execute under directory npm install This will automatically install the complete dependencies , And then pm2 Under the table of contents node_modules The whole subdirectory can be copied to the corresponding location of the offline machine .
copyright：author[Alibaba cloud Q & A]，Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130722004002.html