MAC的问题迫使我不得不重新格式化并重新开始。我将项目上传到GITHUB,并在安装NPM 6.9.0和Node 12.6.0之后下载了它。什么都行不通,而且我不断收到此gyp错误:
gyp: Call to 'node findJavaHome.js' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/anonymous/Development/Mundo1.6/node_modules/java
gyp ERR! node -v v12.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! java@0.11.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the java@0.11.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
我现在不确定该怎么办...我已经尝试了所有在网上看到的建议:
sudo npm install --unsafe-perm
sudo node-gyp rebuild -g --unsafe-perm
sudo chmod 777
sudo node-gyp rebuild -g --unsafe-perm
sudo npm config set unsafe-perm=true
npm rebuild node-sass
在此刻,任何帮助将不胜感激。同样,我必须格式化才能升级我的MAC os Mojave 10.14.5
过去我从来没有在NPM上经常使用sudo,所以我不确定出了什么问题。
答案 0 :(得分:0)
对我来说,它正在将node-sass
版本(从Angular安装节点软件包管理器软件包时收到此错误)从4.9.3
升级到4.13.1