-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问npm install时出现问题! #8
Comments
1、升级一下 Node 版本 |
谢谢 我在尝试下 有问题继续反馈,Node 版本是 v12.16.2 |
实测切换国内镜像也没用。下载可以正常,只是在 node-gyp 编译环境卡主。环境 cenos7 有大神可以将编译好的依赖库上传上来么?node_modules 文件夹 |
@ss958 解决了吗?这个是 Node 本身的问题。 |
hiredis@0.5.0 install E:\nei_\node_modules\hiredis E:\nei_\node_modules\hiredis>if not defined npm_config_node_gyp (node "D:\nvm\v14.0.0\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "D:\nvm\v14.0.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
node-pre-gyp WARN Using request for node-pre-gyp https download 请问为什么npm install了之后会自动执行这个gyp的命令并且失败了呢,Node版本是14.0.0 |
是不是切过 Node 版本?删除 不行的话试试低版本 Node(同样要删除 还是不行就试试 cnpm:
|
E:\nei_>cnpm install E:\nei_\node_modules_hiredis@0.5.0@hiredis>node "D:\nvm\v12.18.3\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\node-gyp.js" rebuild
WARN node unsupported "node@v12.18.3" is incompatible with mcss@0.5.1 › request@2.20.0 › hawk@0.10.2 › sntp@0.1.x, expected node@0.8.x WARN node unsupported "node@v12.18.3" is incompatible with mcss@0.5.1 › request@2.20.0 › hawk@0.10.2 › boom@0.3.x, expected node@0.8.x [1/2] scripts.postinstall ejs@^2.5.1 finished in 91ms E:\nei_\node_modules_nodejieba@2.4.1@nodejieba>node "D:\nvm\v12.18.3\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\node-gyp.js" clean E:\nei_\node_modules_nodejieba@2.4.1@nodejieba>node "D:\nvm\v12.18.3\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\node-gyp.js" configure --fallback-to-build --module=E:\nei_\node_modules_nodejieba@2.4.1@nodejieba\build\Release\nodejieba.node --module_name=nodejieba --module_path=E:\nei_\node_modules_nodejieba@2.4.1@nodejieba\build\Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72 试了node版本 12.18.3和 14.0.0还有8.5.0报错都是这样 python版本切换到2.7
|
git源码后 npm install nej -g 完成,下一步 npm install 时出现 node-gyp rebuild 卡主不动的问题。请问怎么处理?
The text was updated successfully, but these errors were encountered: