我在其中创建了一个项目,ubuntu然后运行并部署了它,它运行良好。现在我更改操作系统并使用 Windows 10,当我npm start在 vscode 中运行此代码时,它向我显示此错误:> 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。有什么问题 ?我怎么解决这个问题 ??
添加回答
举报
0/150
提交
取消