【发布时间】:2018-04-22 12:55:25
【问题描述】:
我为学习设置了构建工具。但是我安装了nodejs并使用“npm install”转到cmd进行设置,它显示了一个错误。我该如何解决这个问题?
Tks.
错误信息:
C:\Users\users\Downloads\bootstrap-custom>npm install
iltorb@1.3.10 安装 C:\Users\micha\Downloads\bootstrap-custom\node_modules\iltorb 检测-libc 预编译安装 ||节点gyp重建
预构建安装信息开始预构建安装版本 2.5.1 prebuild-install 信息寻找本地 prebuild @ prebuilds\iltorb-v1.3.10-node-v59-win32-x64.tar.gz prebuild-install 信息寻找缓存的 prebuild @ C:\Users\users\AppData\Roaming\npm-cache_prebuilds\https-github.com-MayhemYDG-iltorb-releases-download-v1.3.10-iltorb-v1.3.10-node- v59-win32-x64.tar.gz 预构建安装 http 请求 GET https://github.com/MayhemYDG/iltorb/releases/download/v1.3.10/iltorb-v1.3.10-node-v59-win32-x64.tar.gz 预构建安装 http 404 https://github.com/MayhemYDG/iltorb/releases/download/v1.3.10/iltorb-v1.3.10-node-v59-win32-x64.tar.gz prebuild-install WARN install 未找到预构建的二进制文件(target=9.11.1 runtime=node arch=x64 platform=win32)
C:\Users\users\Downloads\bootstrap-custom\node_modules\iltorb>如果未定义 npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin \....\node_modules\node-gyp\bin\node-gyp.js" 重建) else (节点 "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp. js"重建) 吉普错误!配置错误 吉普错误!堆栈错误:找不到 Python 可执行文件“C:\Users\micha\AppData\Local\Programs\Python\Python36-32\python.EXE”,您可以设置 PYTHON 环境变量。 吉普错误!堆栈在 PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19) 吉普错误! PythonFinder 的堆栈。 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16) 吉普错误!堆栈在 C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 吉普错误!堆栈在 FSReqWrap.oncomplete (fs.js:170:21) 吉普错误!系统 Windows_NT 10.0.16299 吉普错误!命令“C:\Program Files\nodejs\node.exe”“C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js”“重建” 吉普错误! cwd C:\Users\micha\Downloads\bootstrap-custom\node_modules\iltorb 吉普错误!节点-v v9.11.1 吉普错误!节点gyp -v v3.6.2 吉普错误!不好 npm WARN rollback 回滚 readable-stream@2.2.9 失败(这可能是无害的):EPERM: operation not allowed, lstat 'C:\Users\users\Downloads\bootstrap-custom\node_modules\fsevents\node_modules' npm WARN bootstrap@4.1.0 需要 jquery@1.9.1 - 3 的对等点,但没有安装。您必须自己安装对等依赖项。 npm WARN 可选跳过可选依赖:fsevents@1.1.3 (node_modules\fsevents): npm WARN notsup 跳过可选依赖:fsevents@1.1.3 不受支持的平台:想要 {"os":"darwin","arch":"any"}(当前:{"os":"win32","arch": "x64"})
npm 错误!代码生命周期
npm 错误!错误号 1
npm 错误! iltorb@1.3.10 安装:detect-libc prebuild-install || node-gyp rebuild
npm 错误!退出状态 1
npm 错误!
npm 错误! iltorb@1.3.10 安装脚本失败。
npm 错误!这可能不是 npm 的问题。上面可能还有额外的日志输出。
npm 错误!可以在以下位置找到此运行的完整日志: npm 错误! C:\Users\users\AppData\Roaming\npm-cache_logs\2018-04-10T11_50_16_425Z-debug.log
【问题讨论】:
标签: npm