【发布时间】:2021-07-06 00:12:52
【问题描述】:
几个月来我一直在使用 npm 来构建项目,但 5 天前它突然停止在我所有的 React 项目上工作。
现在,每当我尝试运行 npm start 时,都会收到一条错误消息:
project name @0.1.0 start react-scripts start The system cannot find the path specified.
所以,我首先尝试了npm install,然后又尝试了start,但没有成功,所以我尝试了npm cache clean,但出现错误提示:
npm ERR! As of npm@5, the npm cache self-heals from corruption issues...
然后终端告诉我尝试npm cache clean --force。然后我又收到一条错误消息:
npm WARN using --force Recommended protections disabled.
我也尝试过运行npm cache verify,但没有成功。我什至下载并安装了最新版本的节点,但仍然没有。
不仅是我还尝试在另一个目录中的另一个应用程序上执行“npm run build”并显示了这一点
"amazon-clone@0.1.0 构建
反应脚本构建
系统找不到指定的路径。”
我检查过,我使用的是 NPM 版本 7.9.0
拜托我卡住了,我不知道该怎么办
【问题讨论】:
标签: node.js reactjs windows npm npm-start