我正在使用nodejs和mySql构建服务器
我从中下载了mySql http://www.mysql.com/downloads/mysql/ 我从中下载了nodejs http://nodejs.org/dist/v0.6.6/node-v0.6.6.msi
当我通过cmd去 C:\ program files \ nodejs
并输入 npm install mysql
我收到一个巨大的错误信息:
C:\Program Files\nodejs>npm install mysql
npm ERR! Error: EACCES, permission denied 'C:\Program Files\nodejs'
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR!
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mysql"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! path C:\Program Files\nodejs
npm ERR! code EACCES
npm ERR! message EACCES, permission denied 'C:\Program Files\nodejs'
npm ERR! Error: EACCES, permission denied 'C:\Program Files\nodejs\npm-debug.log'
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR!
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mysql"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! path C:\Program Files\nodejs\npm-debug.log
npm ERR! code EACCES
npm ERR! message EACCES, permission denied 'C:\Program Files\nodejs\npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Program Files\nodejs\npm-debug.log
npm not ok
有人知道这个问题吗?
thanx inot in advanced ..
答案 0 :(得分:0)
老兄你需要在安装MySql之前关闭你的网络....
它会将mysql驱动程序下载到节点
是的,你可能需要管理员权限......
通过查看命令onlt 来安装和thanx
blah blah / nodejs&gt; npm install mysql