bson@0.1.1安装:`node install.js`

时间:2012-08-18 02:04:32

标签: node.js mongodb

我正在尝试安装mongodb。我使用命令> npm install mongodb<,但它给出了以下响应:

npm ERR! bson@0.1.1 install: `node install.js`
npm ERR! `cmd "/c" "node install.js"` failed with 1
npm ERR!
npm ERR! Failed at the bson@0.1.1 install script.
npm ERR! This is most likely a problem with the bson 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 bson
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mongodb"
npm ERR! cwd D:\GitHub
npm ERR! node -v v0.8.2
npm ERR! npm -v 1.1.36
npm ERR! code ELIFECYCLE
npm ERR! message bson@0.1.1 install: `node install.js`
npm ERR! message `cmd "/c" "node install.js"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     D:\GitHub\npm-debug.log
npm ERR! not ok code 0

1 个答案:

答案 0 :(得分:0)

我相信节点不在您的路径中,我相信npm会弹出,所以如果它不在PATH中,它将无法找到它。因此,在您的情况下,将C:\Program Files\nodejs添加到Windows“PATH”环境变量中。

相关问题