mqllin
V2EX  ›  Node.js

为什么 npm install 经常卡在 reify?

  •  
  •   mqllin · Aug 7, 2024 · 3324 views
    This topic created in 827 days ago, the information mentioned may be changed or developed.

    mql@mqldeMacBook-Pro16 electron-vite-template % npm i
    (##################) ⠦ reify:app-builder-bin: timing reifyNode:node_modules/electron-devtools-vendor Completed in 2558ms

    例如我发现 electron 项目出奇的难启动,无论是阿里源还是 npm 默认源,都很难顺利 install 成功。我在 windows 上 install 成功的项目,放到 M1 mac 上 install 就光卡住不动。

    这个 reify 操作是干什么的?

    4 replies  •  2024-08-08 11:22:47 +08:00
    liugezhou
    liugezhou
    Aug 7, 2024 via iPhone
    1
    换个 node 版本试试
    dream4ever
    dream4ever
    Aug 7, 2024
    2
    Google 了一下发现这个问题挺普遍: https://stackoverflow.com/questions/66893199/hanging-stuck-reifyprettier-timing-reifynodenode-modules-nrwl-workspace-comp ,说是这个包在下载但是没有显示进度,所以让人觉得卡住了。一种方法就是链接里说的降级 Node.js 版本。
    elboble
    elboble
    Aug 7, 2024 via Android
    3
    换 node 版本,前两天自己的一个老项目,从 20 降到 16 才行
    DingJZ
    DingJZ
    Aug 8, 2024
    4
    install 的时候--verbose 看看进行到哪了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4313 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 08:51 · PVG 16:51 · LAX 00:51 · JFK 03:51
    ♥ Do have faith in what you're doing.