柚子快報邀請碼778899分享:若依前端啟動報錯
若依前端啟動報錯
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所在路徑下執(zhí)行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
改對路徑即啟動成功。
柚子快報邀請碼778899分享:若依前端啟動報錯
參考鏈接
本文內容根據(jù)網(wǎng)絡資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。
轉載請注明,如有侵權,聯(lián)系刪除。