它总是挂在同一个地方:reify:tailwindcss: timing build:queue Completed in [number]ms
我什至试过走开并让它过夜,但无济于事。真正令人沮丧的是,大约一周前,这对我来说是另一个项目,但在过去的两天里,我遇到了这堵墙。
我尝试了几种我在这里看到的方法(每次都删除node_modules
文件夹):
npm config set registry http://registry.npmjs.org/
npm cache clear --force
- 将 NPM 降级到 v6
这是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