zhang2657977442 / wuyou-admin

✨招聘无忧小程序后台管理系统React+Ant Design+Ant Design Pro
MIT License
57 stars 24 forks source link

苦苦 npm run dev 运行不起来 #1

Open darellwu opened 1 year ago

darellwu commented 1 year ago

试了各种办法,registry、yarn、cnpm 等办法, 还是 build ,统统都失败,nodejs 从 18.16.0 到 18.16.1 到 20.3.1 统统都过不去

yarn build --registry https://registry.npm.taobao.org yarn run v1.22.19 $ max build --registry https://registry.npm.taobao.org Hello PRO info - [你知道吗?] 如果要支持低版本浏览器,可尝试新出的 legacy 配置项,详见 https://umijs.org/blog/legacy-browser Using openapi Plugin info - Umi v4.0.71 info - Preparing...

● Webpack █████████████████████████ building (28%) 0/1 entries 33306/33337 dependencies 3081/9301 modules 4226 active node_modules/@ant-design/pro-utils/node_modules/@ant-design/icons/es/icons/RocketFilled.js

Killed error Command failed with exit code 137. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. root@node-host:/web# npm run build

zhang2657977442 commented 1 year ago

请尝试删除node_modules,重新执行install(国内建议使用 cnpm install) 如果还是不行请尝试更换node版本 我的版本目前是v16.13.2

darellwu commented 1 year ago

不行,使用了 v16.13.2,还是不行,主要是下载时,老是 killed 就退出。 世上最可怕的命令就是 npm

zhang2657977442 commented 1 year ago

可以加我qq 2657977449 帮你仔细看看