1、'.' 不是內(nèi)部或外部命令脯颜,也不是可運(yùn)行的程序或批處理文件悠汽。
通過npm run dev報錯
在文件package.json中
"scripts": {
...
"dev": ".node_modules/.bin/nodemon bin/www",
}
解決方案如下:
"scripts": {
...
"dev": ".\\node_modules\\.bin\\nodemon bin\\www"
}