NPM-在安装angular cli后构建Angular App ELIFECYCLE时出现节点错误-errno 139

时间:2020-07-10 16:30:23

标签: node.js angular npm

今天我安装了angular-cli,但遇到一个问题,由于缺少权限,我一开始无法安装它,后来我用sudo npm install安装了它,这导致了我今天整日无法修复的问题所以我被迫在这里问这个问题。

当我构建应用程序的前端部分时,出现此错误:

[INFO] > node ./node_modules/@angular/cli/bin/ng build --prod
[INFO] 
[INFO] Segmentation fault (core dumped)
[INFO] npm ERR! code ELIFECYCLE
[INFO] npm ERR! errno 139
[INFO] npm ERR! app-fe@1.2.0 mavenbuild: `node ./node_modules/@angular/cli/bin/ng build --prod`
[INFO] npm ERR! Exit status 139
[INFO] npm ERR! 
[INFO] npm ERR! Failed at the app-fe@1.2.0 mavenbuild script.
[INFO] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[INFO] 
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR!     /home/nikola/.npm/_logs/2020-07-10T16_08_21_554Z-debug.log

值得一提的是,我今天可以在安装angular-cli之前成功构建应用程序。该应用程序未做任何更改,我团队中的其他人可以构建它,但由于这些问题,我无法实现。

这是整个日志:https://pastebin.com/srAAQXmn

我看到一个帖子,说我使用SUDO在npm上安装任何东西时都犯了一个错误,但是我找不到任何解决方案...

0 个答案:

没有答案