问题
Thanks in advance for helping me.
I want to create a product build on changes inside src
directory. For that I used watch
package of npm. Below is my "scripts" inside package.json
"scripts": {
"webpack-dev-server": "webpack-dev-server",
"dev": "watch 'npm run prod' src",
"prod": "webpack --mode=production"
},
Now when I run npm run dev
command. It gives me:
Error: ENOENT: no such file or directory, stat 'E:\projects\chatapp\run'
回答1:
Try with npm install
maybe it solves or you can look at this thread as it seems similar issue How to resolve Nodejs: Error: ENOENT: no such file or directory
and more specifically to this answer https://stackoverflow.com/a/43260706/10928899
来源:https://stackoverflow.com/questions/55741015/npm-package-watch-giving-no-such-file-or-directory-error