NPM安装不工作- reify停止-但在其他机器上工作,如何进一步调查/修复

pbpqsu0x  于 2023-01-17  发布在  其他
关注(0)|答案(1)|浏览(399)

我有一个服务器上的npm的问题(cloudlinux与节点16和npm 8.15)。当试图通过npm ci安装它只是失速,似乎是什么都没有做了我的服务器上。我尝试了--verbose选项,看看我是否得到任何错误,但我没有。

... # lots of dependencies installed
npm timing build:link:node_modules/which Completed in 26ms
npm timing build:link:node_modules/webpack-dev-server Completed in 26ms
npm timing build:link:node_modules/execa/node_modules/which Completed in 25ms
npm timing build:link:node_modules/pinia/node_modules/vue-demi Completed in 25ms
npm timing build:link Completed in 33ms
npm info run canvas@2.10.1 install node_modules/canvas node-pre-gyp install --fallback-to-build --update-binary
npm info run yorkie@2.0.0 install node_modules/yorkie node bin/install.js
npm info run canvas@2.10.1 install { code: 134, signal: null }
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/canvas
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/@mapbox/node-pre-gyp
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/nan
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/simple-get
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/detect-libc
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/nopt
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/npmlog
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/@mapbox/node-pre-gyp/node_modules/semver
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/tar
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/decompress-response
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/simple-concat
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/abbrev
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/are-we-there-yet
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/console-control-strings
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/gauge
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/set-blocking
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/chownr
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/fs-minipass
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/minizlib
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/mimic-response
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/delegates
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/aproba
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/color-support
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/has-unicode
npm verb reify failed optional dependency /home/dasdding/m3d/node_modules/wide-align
npm timing build:run:install:node_modules/canvas Completed in 660ms
[##################] | reify:typescript: timing build:run:install:node_modules/canvas Completed in 660ms

它已经停滞了超过10分钟,重试或npm cache clean --force也没有帮助。奇怪的是,它在我的开发机器(windows)和gitlab-ci(linux docker)上工作,所以一定是与基础设施有关。但是我不知道在哪里进一步调查。
有主意吗?干杯汤姆

dwbf0jvd

dwbf0jvd1#

我也遇到了同样的问题。结果是ipv6的问题。为了解决这个问题,
1.在你的机器上禁用ipv6
1.使用npm
1.在你的机器上重新启用ipv6
在mac上,你可以在参数设置中或从cli.快速google搜索将告诉你如何

相关问题