进入到hosts文件中

cd /etc

more hosts

vim hosts

增加103.245.222.162 registry.npmjs.org

按esc,继续按:

输入wq!保存退出

在nodejs的bin目录中执行

npm install forever -g

等待安装完成

 

安装supervisor

npm install -g supervisor

windows中可能不成功,是因为命令窗口得以管理员身份运行

 

Logo

更多推荐