我在使用npx create-react-app时遇到了一个错误,下面是我的错误代码: npm version是14,我也尝试了12,但仍然遇到了这个错误。禁用了我的杀毒软件
error C:\Users\Gringo-PC\Documents\vvv\my-app\node_modules\ejs: Command failed.
Exit code: 1
Command: node ./postinstall.js
Arguments:
Directory: C:\Users\Gringo-PC\Documents\vvv\my-app\node_modules\ejs
Output:
internal/modules/cjs/loader.js:797
throw err;
Error: Cannot find module 'C:\Users\Gringo-PC\Documents\vvv\my-app\node_modules\ejs\postinstall.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',这会有什么问题呢?
发布于 2020-10-29 22:47:13
我已经通过删除位于AppData\Roaming中的所有npm文件夹修复了这个问题,然后重新安装nodejs。
https://stackoverflow.com/questions/64588958
复制相似问题