Node.js bson@0.1.1install:`node install.js`

Node.js bson@0.1.1install:`node install.js`,node.js,mongodb,Node.js,Mongodb,我正在尝试安装mongodb。我使用了命令>npm install mongodb我相信节点不在您的路径中,而且我相信npm会退出,所以如果它不在路径中,它将无法找到它。因此,在您的情况下,将C:\Program Files\nodejs添加到您的Windows“PATH”环境变量中。我刚刚安装了它(Windows XP,node 0.8.5,npm 1.1.46),它工作正常。尝试升级到更高版本的node(您可能需要的是较新版本的npm,但node本身的一些更改影响了Windows版本)。 n

我正在尝试安装mongodb。我使用了命令>npm install mongodb我相信节点不在您的路径中,而且我相信npm会退出,所以如果它不在路径中,它将无法找到它。因此,在您的情况下,将
C:\Program Files\nodejs
添加到您的Windows“PATH”环境变量中。

我刚刚安装了它(Windows XP,node 0.8.5,npm 1.1.46),它工作正常。尝试升级到更高版本的node(您可能需要的是较新版本的npm,但node本身的一些更改影响了Windows版本)。
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