先出現的是超過最大調用棧問題:
npm ERR! Maximum call stack size exceeded
百度之后說給npm降級或者升級
- 降級 : npm install -g npm@5.4.0
- 升級 : npm install -g npm
升級到最新版
結果降級之后再嘗試的時候就直接報版本跟node.js不兼容的問題,然后各種在升級都不好使,只能重新刪掉在升級。
You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compa
tible with Node.js 9 and above.
解決辦法:
1、npm uninstall -g npm
2、npm install -g npm