NodeJS npm 安装 express

来源:互联网 发布:淘宝众筹平台 编辑:程序博客网 时间:2024/05/16 15:25

因为楼主是代理上网, 所以,怎么样都没有成功

npm insatll express -gd

试了很多次都没有成功, 最后还是把系统代理关掉, 找个有网络的地方重新尝试^Clyle@mepc:~$ npm install express -gd

lyle@mepc:~$ npm install express -gd
npm info it worked if it ends with ok
npm info using npm@1.4.3
npm info using node@v0.10.26
npm info trying registry request attempt 1 at 09:34:54
npm http GET https://registry.npmjs.org/express
npm info retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=3074438912:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:766:
npm info retry
npm info trying registry request attempt 2 at 09:35:04
npm http GET https://registry.npmjs.org/express
npm info retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=3074438912:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:766:
npm info retry

之后看了这个帖子 http://blog.csdn.net/cnbird2008/article/details/8442333

照做确实可以, 如果你不确定自己敲的命令有没有对, 那么

npm config list

就可以看到你的设置是怎样的, 打开相应的文件删除掉即可

最有用的是npm config --help

这样就可以知道怎么做了

如果想重置http://stackoverflow.com/questions/20934343/how-to-restore-reset-npm-configuration-to-default-values


碰到一个将express 博客开发日志

http://blog.fens.me/nodejs-express3/

0 0