按照5分钟教程搭建
nohup cnpmjs.org start --admins='myname,othername' \ --scopes='@my-company-name,@other-name' &
执行这个步骤后,程序处于待输入状态。在执行这个cnpm set registry http://localhost:7001直接退出,但是查看了~/.cnpmrc的配置文件,生成是成功的。
然后我接着往下执行,$ cnpm login,输入用户名,密码和邮箱(随便输入的)等待好久就报错如下:
`cnpm login
Username: ganxunzou
Password:
Email: (this IS public) ganxunzou@163.com
npm ERR! Linux 3.10.0-123.9.3.el7.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/root/.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--cache=/root/.cnpm" "--registry=http://localhost:7001" "--node-gyp=/usr/local/lib/node_modules/cnpm/node_modules/node-gyp/bin/node-gyp.js" "login"
np