如何安装expression框架
我在Windows中,我已经安装了node.js。 现在我需要安装快速框架,所以我在控制台(cmd)中:
npm install express --save
我怎么读这个:
http://www.tutorialspoint.com/nodejs/nodejs_express_framework.htm
但是我得到这个错误:
npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x8 6)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "--save" npm ERR! node v4.4.7 npm ERR! npm v2.15.8 npm ERR! code E403 npm ERR! unregistered users are not allowed to access package express : express npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request:
任何人都可以帮助我?
我想你可能没有使用适当的registry。 尝试:
npm set registry "https://registry.npmjs.org/"
并运行npm install --save express
再次
使用Express Framework生成Web应用程序的步骤:
- npm安装expressgenerator -g
- npm install express
- 表示'文件名'
- npm intsall