当前位置:首页 » 《资源分享》 » 正文

若依前端启动报错

3 人参与  2024年03月22日 12:11  分类 : 《资源分享》  评论

点击全文阅读


若依前端启动报错

D:\IdeaProjects\tr-gs-api\gs-api-B6-ui>npm run devnpm ERR! code ENOENTnpm ERR! syscall opennpm ERR! path D:\IdeaProjects\tr-gs-api\gs-api-B6-ui\package.jsonnpm ERR! errno -4058npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'D:\IdeaProjects\tr-gs-api\gs-api-B6-ui\package.json'npm ERR! enoent This is related to npm not being able to find a file.npm ERR! enoentnpm ERR! Log files were not written due to an error writing to the directory: D:\java\nodejs\node_cache\_logsnpm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

启动路径错误,需要在package.json所在路径下执行npm run dev
在这里插入图片描述)

D:\IdeaProjects\tr-gs-api\gs-api-B6-ui\ruoyi-ui>npm run dev> ruoyi@3.8.5 dev> SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve INFO  Starting development server...98% after emitting CopyPlugin DONE  Compiled successfully in 9622ms  

改对路径即启动成功。


点击全文阅读


本文链接:http://zhangshiyu.com/post/83549.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1