首页 > 解决方案 > npm install 挂在“reify:tailwindcss:timing build:queue Completed in 141ms”

问题描述

它总是挂在同一个地方:reify:tailwindcss: timing build:queue Completed in [number]ms

我什至试过走开并让它过夜,但无济于事。真正令人沮丧的是,大约一周前,这对我来说是另一个项目,但在过去的两天里,我遇到了这堵墙。

我尝试了几种我在这里看到的方法(每次都删除node_modules文件夹):

这是package.json文件:

    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "mix",
        "watch": "mix watch",
        "watch-poll": "mix watch -- --watch-options-poll=1000",
        "hot": "mix watch --hot",
        "prod": "npm run production",
        "production": "mix --production"
    },
    "devDependencies": {
        "@tailwindcss/forms": "^0.2.1",
        "alpinejs": "^2.7.3",
        "autoprefixer": "^10.1.0",
        "axios": "^0.21",
        "laravel-mix": "^6.0.6",
        "lodash": "^4.17.19",
        "postcss": "^8.2.1",
        "postcss-import": "^12.0.1",
        "tailwindcss": "^2.0.2"
    }
}

这是最后几行输出npm install --verbose

npm timing reifyNode:node_modules/regenerate-unicode-properties Completed in 11736ms
npm http fetch GET 200 https://registry.npmjs.org/collect.js/-/collect.js-4.28.6.tgz 9769ms (cache miss)
npm timing reifyNode:node_modules/collect.js Completed in 12103ms
npm http fetch GET 200 https://registry.npmjs.org/webpack/-/webpack-5.47.0.tgz 10602ms (cache miss)
npm timing reifyNode:node_modules/webpack Completed in 12926ms
npm http fetch GET 200 https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001247.tgz 10640ms (cache miss)
npm timing reifyNode:node_modules/caniuse-lite Completed in 13014ms
npm http fetch GET 200 https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz 10703ms (cache miss)
npm timing reifyNode:node_modules/lodash Completed in 13111ms
npm http fetch GET 200 https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.2.7.tgz 10910ms (cache miss)
npm timing reifyNode:node_modules/tailwindcss Completed in 13289ms
npm timing reify:unpack Completed in 13331ms
npm timing reify:unretire Completed in 1ms
npm timing build:queue Completed in 113ms
⸨##################⸩ ⠦ reify:tailwindcss: timing build:queue Completed in 113ms

标签: javascriptnode.jsnpmtailwind-cssreify

解决方案


就我而言,按Ctrl+C显示它只下载了一些东西:

...

npm ERR!      0K .......... ..........                                 100%  149K=0.1s
npm ERR!
npm ERR! 2021-12-24 16:11:52 (149 KB/s) - ‘/tmp/install_wasmedge.sh’ saved [21372/21372]
npm ERR!
npm ERR!
npm ERR!      0K .......... .......... .......... .......... ..........  0%  196K 3m23s
npm ERR!     50K .......... .......... .......... .......... ..........  0% 77.5K 5m58s
npm ERR!    100K .......... .......... .......... .......... ..........  0%  125M 3m58s
npm ERR!    150K .......... .......... .......... .......... ..........  0%  104K 4m34s
npm ERR!    200K .......... .......... .......... .......... ..........  0%  115K 4m48s
npm ERR!    250K .......... .......... .......... .......... ..........  0% 22.7K 8m50s
npm ERR!    300K .......... .......... .......... .......... ..........  0% 42.6K 9m46s
npm ERR!    350K .......... .......... .......... .......... ..........  1% 34.1K 10m57s
npm ERR!    400K .......... .......... .......... .......... ..........  1% 30.5K 12m7s
npm ERR!    450K .......... .......... .......... .......... ..........  1% 16.5K 14m52s

...

npm ERR!  16950K .......... .......... .......... .......... .......... 42% 26.6K 21m45s
npm ERR!  17000K .......... .......... .......... .......... .......... 42% 20.5K 21m41s
npm ERR!  17050K .......... .......... .......... .......... .......... 42% 16.4K 21m39s
npm ERR!  17100K .......... .......... .......... .......... .......... 43% 14.2K 21m37s
npm ERR!  17150K .......... .......... .......... .......... .......... 43% 14.0K 21m35s
npm ERR!  17200K .......... .......... .......... .......... .......... 43% 31.7K 21m30s
npm ERR!  17250K .......... .......... .......... .......... .......... 43% 27.6K 21m26s
npm ERR!  17300K .......... .......... .......... .......... .......... 43% 25.6K 21m22s
npm ERR!  17350K .......... .......... .......... .......... .......... 43% 15.1K 21m20s
npm ERR!  17400K .......... .......... .......... .......... .......... 43% 18.9K 21m17s
npm ERR!  17450K .......... .......... .

=> 查看您的网络流量日志。


推荐阅读