npm run watch不适用于windows上的laravel

时间:2017-10-09 16:40:24

标签: node.js windows laravel npm laravel-5.3

这是我从cmd获得的错误我试着找一个解决方案而不是运气我没有在OSX上尝试但是我可能会在以后尝试

npm ERR! @ watch-poll: `npm run watch -- --watch-poll`
npm ERR! Exit status 4294963238
npm ERR!
npm ERR! Failed at the @ watch-poll script.
npm ERR! This is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run watch -- --watch-poll
npm ERR! You can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "watch-poll"
npm ERR! cwd C:\Users\Yosef\Desktop\pos
npm ERR! node -v v6.11.2
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Yosef\Desktop\pos\npm-debug.log
npm ERR! not ok code 0

1 个答案:

答案 0 :(得分:0)

有时,当您已启动网络服务器时,如果您尝试在另一个终端会话上再次运行ELIFECYCLE命令,则会出现npm错误。

确保您没有其他任何实例正在运行。