npm install error step on pit road

The first is the emergence of the problem exceeds the maximum call stack:

npm ERR! Maximum call stack size exceeded 

He said after Baidu to upgrade or downgrade npm

  • Demotion: npm install -g [email protected]
  • Upgrade: npm install -g npm  升级到最新版

The results after attempting to downgrade when he directly reported is not compatible with the version of node.js problem, then not so that a variety of upgrade, the upgrade can only be deleted again.

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.

Solution: 

  1, the altitude above sea level uninstall g

  2, the altitude above sea level install g

Guess you like

Origin www.cnblogs.com/08291018wan/p/11262400.html