在安装/卸载时总是重复出现错误

时间:2019-09-12 13:44:35

标签: angular npm

无论我使用npm安装什么,这些错误始终显示:

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/angular-workspace/highcharts-angular-master/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:209:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 5.0.0-27-generic
gyp ERR! command "/home/.nvm/versions/node/v12.10.0/bin/node" "/home/angular-workspace/highcharts-angular-master/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/angular-workspace/highcharts-angular-master/node_modules/node-sass
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.10.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@4.10.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我在做什么错?这里有什么问题?我尝试再次卸载并安装所有内容,但这也不起作用。甚至在卸载某些内容时也会显示错误。

1 个答案:

答案 0 :(得分:0)

您是否尝试过清除npm的缓存,您可以使用此npm cache clean

最后一句话说这可能不是npm的问题。所以我不知道这是整个堆栈/日志吗?

否则高车位可能会出错,因为我看到它在堆栈中发生了两次

相关问题