简体   繁体   English

npm 运行手表运行失败,但没有报错

[英]npm run watch fails to run, but gives no error

I am working on a project with a couple of others using laravel and react/material ui.我正在与其他几个人一起使用 laravel 和 react/material ui 进行项目。 Something happened to my npm (someone tried to fix it and ran npm audit fix --force) and therefore I needed to reinstall it.我的 npm 出了点问题(有人试图修复它并运行 npm 审计修复 --force),因此我需要重新安装它。 I deleted npm, deleted node js, reinstalled node js and ran npm install.我删除了 npm,删除了节点 js,重新安装了节点 js,然后运行了 npm 安装。

I have tried countless things so far, including things like remove node modules and package-lock.json and using rm node_modules and rm package-lock.json followed by npm cache clear --force.到目前为止,我已经尝试了无数的事情,包括删除节点模块和 package-lock.json 以及使用 rm node_modules 和 rm package-lock.json 然后是 npm 缓存清除

When I run something like npm run watch or npm run dev this is the output I get.当我运行 npm 运行手表或 npm 运行开发程序时,这就是我得到的 output。

> watch
> npm run development -- --watch


> development
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js "--watch"

After that I expect it to compile and stuff but instead I see the line SP C:\xampp\htdocs\projectName I have tried it with xampp running and without xampp, I also tried it from the phpstorm terminal and the cmd (with admin rights) but sadly nothing seems to work. After that I expect it to compile and stuff but instead I see the line SP C:\xampp\htdocs\projectName I have tried it with xampp running and without xampp, I also tried it from the phpstorm terminal and the cmd (with admin rights ) 但遗憾的是似乎没有任何效果。

The only solution I could find in the end was reïnstalling Windows.最后我能找到的唯一解决方案是重新安装 Windows。 There probably was something like a node or npm folder left somewhere that was interfering with the rest.可能有类似节点或 npm 文件夹留在某处干扰 rest。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM