//第一篇博客
遇见问题
npm run dev时
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error vue-admin-template@4.2.1 dev: `vue-cli-service serve`
22 error Exit status 1
23 error Failed at the vue-admin-template@4.2.1 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
找了一些资料都是说node_modules删掉 ,重新npm install(这里不建议cnpm),可恶我弄了一天不行,还叫我师傅给了他的node_modules,噗!
解决问题
然后我在 Stack Overflow上看见了曙光。
Please Try After Adding C:\Windows\System32 To Environment Variable Path And Restarting Your Device
请尝试将C:\Windows\System32 添加到环境变量路径并重启设备
然后我把用户变量和系统变量都配了C:\Windows\System32,重启,npm run dev,成功,奈斯!
原文链接:https://stackoverflow.com/questions/61370009/error-while-setting-up-react-for-the-first-time-event-js287
good luck!