当前位置: 首页 > 工具软件 > npm-consider > 使用案例 >

npm install --global babel-cli 报错 : npm ERR! Maximum call stack size exceeded

严昀
2023-12-01
npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\JK\AppData\Roaming\npm-cache\_logs\2020-07-03T14_57_03_996Z-debug.log   

解决方法:用管理员身份运行cmd

C:\vs-project\demo\babeldemo>npm install --global babel-cli
npm WARN npm npm does not support Node.js v14.5.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
C:\Program Files\nodejs\babel-doctor -> C:\Program Files\nodejs\node_modules\babel-cli\bin\babel-doctor.js
C:\Program Files\nodejs\babel -> C:\Program Files\nodejs\node_modules\babel-cli\bin\babel.js
C:\Program Files\nodejs\babel-external-helpers -> C:\Program Files\nodejs\node_modules\babel-cli\bin\babel-external-helpers.js
C:\Program Files\nodejs\babel-node -> C:\Program Files\nodejs\node_modules\babel-cli\bin\babel-node.js

> core-js@2.6.11 postinstall C:\Program Files\nodejs\node_modules\babel-cli\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\babel-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ babel-cli@6.26.0
added 234 packages from 119 contributors in 9.563s

安装成功 

 类似资料: