By accessing the website and accepting the Cookie Policy, you agree to use the cookies provided by the Site in accordance with to analyze traffic, remember your preferences, and optimize your experience.
宝塔面板node.js插件用法
宝塔面板    2018-11-21 19:20:31    1875    0    0
emengweb   宝塔面板

首先,将对应版本的node/bin添加至全局目录即可,运行命令:

export PATH=$PATH:/www/server/nvm/versions/node/v10.13.0/bin​

其中“v10.13.0”为node当前使用的版本号。

至此,就可以在全局中使用npm和pm2命令了。

上一篇: 宝塔面板Nginx安装失败的解决方案

下一篇: 宝塔安装Mysql失败的解决方案

1875 人读过
文档导航