若依前端启动报错

若依前端启动报错

D:\IdeaProjects\tr-gs-api\gs-api-B6-ui>npm run dev
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:\IdeaProjects\tr-gs-api\gs-api-B6-ui\package.json
npm ERR! errno -4058
npm 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! enoent

npm ERR! Log files were not written due to an error writing to the directory: D:\java\nodejs\node_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:\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  

改对路径即启动成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值