关于 NPM run watch-poll --no-bin-links 报错的问题

不知道为什么,用 npm run watch-poll --no-bin-links的时候报错了,求助
关于 npm run watch-poll --no-bin-links报错的问题
关于 npm run watch-poll --no-bin-links报错的问题

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 6

有人帮忙看一下吗

4年前 评论

file
试下安装这个?

4年前 评论
SZL_ (楼主) 4年前
shlxw 4年前

怎么解决的,分享一下呀 :joy:

4年前 评论

@666666
试试重新安装vendor:
1、$ rm -rf node_modules
2、$ yarn config set registry https://registry.npm.taobao.org
3、$ yarn install --no-bin-links
4、修改项目根目录下的 package.json 文件
5、运行 npm run watch-poll --no-bin-links
6、重启虚拟机 —— vagrant reload --provision
详情可查看这里 -> 博客:在学习教程中,总是遇到的一些坑(记录一下解决方法)

4年前 评论

现在是这个错
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch" "--watch-poll"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development 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! /home/vagrant/.npm/_logs/2019-11-26T05_04_50_376Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch: npm run development -- --watch "--watch-poll"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch 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! /home/vagrant/.npm/_logs/2019-11-26T05_04_50_501Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch-poll: npm run watch -- --watch-poll
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch-poll 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! /home/vagrant/.npm/_logs/2019-11-26T05_04_50_529Z-debug.log
都用过了,你这些方法还是无效

4年前 评论

@666666 你删除依赖重新安装,然后

> 1、npm cache clear --force
> 2、yarn install --no-bin-links
> 3、 yarn add cross-env --no-bin-links
>4、npm install vue-template-compiler --save-dev --production=false --no-bin-links

然后在启动试下 @问答:Laravel6.5 NPM run dev 报错 环境是 Homestead

4年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!