最近一直在关注node,看了一下node开发指南,发现上面的实例在新版的express3.0+以上不适用,期间遇到过很多问题,因此查看了很多对应的官方资料,现初步实现了microblog登陆和注册模块,地址:https://github.com/hankewins/microblog/ 初学者可以参考,后期将进一步的修改,加入更多的实现功能。
欢迎加入交流群QQ:322794303
2 回复
在Mac下npm install -g express 安装express不成功.
npm config set registry http://registry.npmjs.org/ 后还是不能安装.
Liuzcs-MacBook-Pro:~ Liuzc$ npm install -g express
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express
npm ERR! network getaddrinfo ENOTFOUND
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Darwin 12.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "express"
npm ERR! cwd /Users/Liuzc
npm ERR! node -v v0.10.7
npm ERR! npm -v 1.2.21
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Liuzc/npm-debug.log
npm ERR! not ok code 0