关于 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报错的问题

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
讨论数量: 6

有人帮忙看一下吗

5年前 评论

file
试下安装这个?

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

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

5年前 评论

@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
详情可查看这里 -> 博客:在学习教程中,总是遇到的一些坑(记录一下解决方法)

5年前 评论

现在是这个错
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
都用过了,你这些方法还是无效

5年前 评论

@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

5年前 评论

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