V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
mqllin
V2EX  ›  Node.js

为什么 npm install 经常卡在 reify?

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