繁体   English   中英

npm-install bignum失败

[英]npm-install bignum Failing

尝试使用NPM安装bignum Node.js软件包,但我没有太多运气。 我正在使用Windows 7并以管理员身份运行命令行。 已经将NPM更新到最新版本,使用Python 3.4和c:\\ Python34在我的PATH中(也尝试过Python 2.6,结果类似)。 还尝试了本文中提到的解决方法: npm install return error 甚至尝试了旧版本的bignum(0.8.0)。 不过,每次我尝试安装时,都会看到以下内容:

> bignum@0.9.0 install C:\Program Files\nodejs\node_modules\bignum
> node-gyp configure build

C:\Program Files\nodejs\node_modules\bignum>node "C:\Program Files\nodejs\node_m
odules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" config
ure build
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack     at errnoException (child_process.js:980:11)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:771:
34)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Program Files\nodejs\node_modules\bignum
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "bignum"
npm ERR! node v0.10.24
npm ERR! npm  v2.1.2
npm ERR! code ELIFECYCLE

npm ERR! bignum@0.9.0 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bignum@0.9.0 install script.
npm ERR! This is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls bignum
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Program Files\nodejs\npm-debug.log

有没有我没做过或做错了,还是有包装?

亲切的问候,

瑞安

我有一个类似的问题(错误:产生C:\\ Python34 ENOENT)试图下载socket.io

npm install -g socket.io

我添加了一个环境变量来指向Python可执行文件

set PYTHONPATH=C:\Python34
set PYTHON=%PYTHONPATH%\python.exe

这导致错误消息“错误:Python可执行文件”C:\\ Python34 \\ python.exe“是v3.4.3,gyp不支持”。

然后我下载了旧版本的Python - 2.7.10 - 并将环境变量更改为指向此旧版本

set PYTHONPATH=C:\Python27
set PYTHON=%PYTHONPATH%\python.exe

这解决了我的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM