林在Windows 7命令提示符,,,我試着通過對安設:npm install node-mysql
如何安裝node-mysql?
即時得到這樣的:
C:\Program Files\nodejs>npm install node-mysql
npm http GET https://registry.npmjs.org/node-mysql
npm http 404 https://registry.npmjs.org/node-mysql
npm ERR! 404 'node-mysql' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Maybe try 'npm search mysql'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-mysql"
npm ERR! cwd C:\Program Files\nodejs
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Program Files\nodejs\npm-debug.log
npm ERR! not ok code 0
如何解決呢?我試着去尋找npm search node-mysql
,,我不能發現它在列表
C:\ Program Files文件\的NodeJS> NPM安裝mysql NPM HTTP GET https://registry.npmjs.org/mysql NPM HTTP 304 https://registry.npmjs.org/mysql 給304 – 2013-04-29 14:19:08
嘗試在不同的目錄比程序文件,因爲你需要管理員權限寫在那裏 – 2013-04-29 14:22:30
好吧..但仍然沒有privillege錯誤 – 2013-04-29 14:28:25