我有一个节点模块框架。它的存在绝对是基于能够点击它
并进入node_modules下的文件夹。但我得到错误说命令没有找到
rimraf.
试图删除整个node_module。
也尝试了以下命令。
npm ci
和
npm cache clear --force
npm i
没有错误,一些关于许可和
没有找到模块驱动器模块的存储库字段.
现在当我运行下面的命令时,我以错误结束。
npm run build
误差
sh: rimraf: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! dyna-modules@0.2.0 build: `rimraf build && bundle-trace-app --clientConfig webpack/client.config.js --serverConfig webpack/server.config.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the dyna-module@0.2.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
问题是什么?考虑rimraf存在吗?
也许你可以尝试使用这个命令
rm -rf node_modules package-lock。Json或者在重新安装node-modules之前手动删除它