mongodbとmongooseをnpmでインストールするのに問題があります。どんなアドバイスも大歓迎です!私はキャッシュと更新をクリアするために言った以前の投稿を見ました - これは完了しましたが、同じ問題です...以下はmongo dbのインストールのエラーですが、ほぼ同じです。サーバーのログは...Windows 7でnpmを使用してMongo DBを設定するのに問題があります。
> [email protected] install C:\Users\petrov\Desktop\nodejs\node_modules\mongodb
> node install.js
'node' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! error installing [email protected]
npm ERR! [email protected] install: `node install.js`
npm ERR! `cmd "/c" "node install.js"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the mongodb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls mongodb
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Users\\petrov\\Desktop\\nodejs\\\\node.exe"
"C:\\Users\\petrov\\Desktop\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mongodb"
npm ERR! cwd C:\Users\petrov\Desktop\nodejs
npm ERR! node -v v0.6.10
npm ERR! npm -v 1.1.0-3
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: `node install.js`
npm ERR! message `cmd "/c" "node install.js"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\petrov\Desktop\nodejs\npm-debug.log
npm not ok
ありがとう!私は最初からノードインストールディレクトリからコマンドを実行しました... – Petrov
ノードがあなたのWindowsパスにあることを確認してください.NPMのシェルが出ていると思いますので、PATHになければ見つけることはできません。 – christkv