node.js proejectにdb-mysqlパッケージをインストールすると、コマンドプロンプトまたはターミナル... からのNode.js用のパッケージをインストールするための最も一般的な方法NPM経由でのnpm install mysql
:このエラーはnode.jsプロジェクトにdb-mysqlをインストールすることはできません
npm http GET http://registry.npmjs.org/db-mysql
npm http 304 http://registry.npmjs.org/db-mysql
> [email protected] install D:\vhosts\node.m.com\node_modules\db-mysql
> node-waf configure build
'node-waf' is not recognized as an internal or external command,
operable program or batch file.
> [email protected] preuninstall D:\vhosts\node.m.com\node_modules\db-mysql
> rm -rf build/*
'rm' is not recognized as an internal or external command,
operable program or batch file.
npm WARN continuing anyway [email protected] preuninstall: `rm -rf build/*`
npm WARN continuing anyway `cmd "/c" "rm -rf build/*"` failed with 1
npm ERR! [email protected] install: `node-waf configure build`
npm ERR! `cmd "/c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the db-mysql package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls db-mysql
npm ERR! There is likely additional logging output above.
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" "db-mysql"
を使用し、私はリンパ節転移 'とは思いませんwaf'はWindows上で利用可能です。これはネイティブ拡張を構築するために使用されました([gyp](http://code.google.com/p/gyp/)が今日アドバイスされています)。とにかく、felixgeの[mysql module](https://github.com/felixge/node-mysql)を試してみてください。 –