【问题标题】:node-gyp takes forever to execute npm/yarn commandsnode-gyp 需要永远执行 npm/yarn 命令
【发布时间】:2021-03-27 21:18:14
【问题描述】:

我最近将 Mac 升级到 Big Sur,例如,在开始新项目时,我似乎遇到了 node-gyp 包的一些问题。我想通过yarn create nuxt app <project-name> 创建一个 Nuxt 应用程序,我已经被这个 node-gyp 旋转图标卡住了超过 15 分钟。

我已经尝试使用yarn cache clean 删除纱线缓存,似乎无法解决问题。

有人也经历过吗?

$ yarn create nuxt-app nature-emoi
yarn create v1.22.5
[1/4] ????  Resolving packages...
[2/4] ????  Fetching packages...
[3/4] ????  Linking dependencies...
[4/4] ????  Building fresh packages...
[1/10] ⠂ core-js
[2/10] ⠂ @apollo/protobufjs
[1/10] ⠄ core-js
[1/10] ⡀ core-js
[2/10] ⡀ @apollo/protobufjs
[3/10] ⡀ fsevents
[4/10] ⡀ ejs
success Installed "create-nuxt-app@3.6.0" with binaries:
      - create-nuxt-app
⠠ node-gyp
create-nuxt-app v3.6.0
✨  Generating Nuxt.js project in nature-emoi
⡀ node-gyp

【问题讨论】:

    标签: node.js macos npm yarnpkg node-gyp


    【解决方案1】:

    通过重新安装node解决了这个问题,它不再是稳定版本了:)

    【讨论】:

      猜你喜欢
      • 2020-02-13
      • 2019-05-25
      • 2021-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-19
      • 2022-01-15
      相关资源
      最近更新 更多