我在其中創(chuàng)建了一個(gè)項(xiàng)目,ubuntu然后運(yùn)行并部署了它,它運(yùn)行良好。現(xiàn)在我更改操作系統(tǒng)并使用 Windows 10,當(dāng)我npm start在 vscode 中運(yùn)行此代碼時(shí),它向我顯示此錯(cuò)誤:> Store@1.0.0 start F:\Projects\Nodejs\Store> nodemon server.js'nodemon' is not recognized as an internal or external command,operable program or batch file.npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! Store@1.0.0 start: `nodemon server.js`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the Store@1.0.0 start script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\programmer\AppData\Roaming\npm-cache\_logs\2020-06-27T11_34_26_614Z-debug.log我安裝nodemon: { "name": "Store", "version": "1.0.0", "description": "", "main": "server.js", "scripts": { "start": "nodemon server.js" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "nodemon": "^2.0.4" }}并在 windows 中下載并安裝 nodejs。有什么問題 ?我怎么解決這個(gè)問題 ??
在 nodejs 中使用 npm start 的問題。'nodemon' 不是內(nèi)部或外部命令
猛跑小豬
2022-10-21 15:25:36