CNode

用npm命令,在win7 64位系统下安装mongodb,总出现这样的报错:

Ssedateocean发布于13 年前最后回复13 年前1 回复4367 浏览0 收藏

。。。。。 206 error bson@0.1.8 install: (node-gyp rebuild 2> builderror.log) || (exit 0) 206 error spawn ENOENT 207 error Failed at the bson@0.1.8 install script. 207 error This is most likely a problem with the bson package, 207 error not with npm itself. 207 error Tell the author that this fails on your system: 207 error (node-gyp rebuild 2> builderror.log) || (exit 0) 207 error You can get their info via: 207 error npm owner ls bson 。。。。。

但是直接下载安装mongo压缩包,单独启动,可以启动成功。

郁闷中。。。 有人知道是怎么回事吗

查看回复

回复 (1)

S
sedateocean#1·13 年前

搞定了,需要把C:\Windows\System32放到环境变量的path里。

参与回复
登录后即可参与回复。登录