node里面npm注册用户报错,求大神解释.
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了node里面npm注册用户报错,求大神解释.相关的知识,希望对你有一定的参考价值。
npm adduser
输入密码的时候报错如下:
0 info it worked if it ends with ok
1 verbose cli [ 'E:\\nodejs\\\\node.exe',
1 verbose cli 'E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'adduser' ]
2 info using npm@1.3.21
3 info using node@v0.10.24
4 verbose node symlink E:\nodejs\\node.exe
5 error Error: default value must be string or number
5 error at read (E:\nodejs\node_modules\npm\node_modules\read\lib\read.js:15:11)
5 error at readEmail (E:\nodejs\node_modules\npm\lib\adduser.js:96:3)
5 error at loop (E:\nodejs\node_modules\npm\lib\adduser.js:33:20)
5 error at E:\nodejs\node_modules\npm\lib\adduser.js:89:5
5 error at Interface.onLine (E:\nodejs\node_modules\npm\node_modules\read\lib\read.js:111:5)
5 error at Interface.EventEmitter.emit (events.js:95:17)
5 error at Interface._onLine (readline.js:202:10)
5 error at Interface._line (readline.js:531:8)
5 error at Interface._ttyWrite (readline.js:760:14)
5 error at ReadStream.onkeypress (readline.js:99:10)
6 error If you need help, you may report this *entire* log,
6 error including the npm and node versions, at:
6 error <http://github.com/isaacs/npm/issues>
7 error System Windows_NT 6.1.7601
8 error command "E:\\nodejs\\\\node.exe" "E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "adduser"
9 error cwd C:\Users\Administrator
10 error node -v v0.10.24
11 error npm -v 1.3.21
12 verbose exit [ 1, true ]
实际上密码我试了很多次,数字、字符等,都不好用,咋回事呢?
参见bug集:https://github.com/npm/npm/issues/4363
使用下面命令设置email,可以解决
npm config set email myemail@gmail.com本回答被提问者采纳 参考技术C npm adduser-我的这个Unable to authenticate, need: Basic 是因为username 需要 ~开头,登录的时候漏了,所以报这个错误,估计你这个问题也差不多少了个~eclipse c++ 报错 求大神看看
#include<iostream>
using namespace std;
int main()
int a;
cin >> a;
cout <<a;// error: 'cout' was not declared in this scope
return 0;
谁能告诉我为什么
以上是关于node里面npm注册用户报错,求大神解释.的主要内容,如果未能解决你的问题,请参考以下文章