若依前端启动报错

若依前端启动报错

D:IdeaProjectstr-gs-apigs-api-B6-ui>npm run dev
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:IdeaProjectstr-gs-apigs-api-B6-uipackage.json
npm ERR! errno -4058
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'D:IdeaProjectstr-gs-apigs-api-B6-uipackage.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Log files were not written due to an error writing to the directory: D:javanodejsnode_cache_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal

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

D:IdeaProjectstr-gs-apigs-api-B6-uiruoyi-ui>npm run dev

> [email protected] dev
> SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve

 INFO  Starting development server...
98% after emitting CopyPlugin

 DONE  Compiled successfully in 9622ms  

改对路径即启动成功。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>