Open JackyFreedom opened 2 years ago
type 1: first delete first node modules than type "npm cache clean" and add npm install(try this max 2 times) or type 2 👍 :create empty folder run "npm install" or "npm install -g npm" note : check whether u have installed and set an environment path at settings of like nodejs etc......
Thanks ,I use yarn installing is ok
Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code 1 npm ERR! path D:\myProject\minApps\test01\my-app\node_modules\coa npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c start /B node compile.js & node compile.js npm ERR! node:internal/modules/cjs/loader:936 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module 'D:\myProject\minApps\test01\my-app\node_modules\coa\compile.js' npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:778:27) npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) npm ERR! at node:internal/main/run_main_module:17:47 { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! requireStack: [] npm ERR! } npm ERR! node:internal/modules/cjs/loader:936 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module 'D:\myProject\minApps\test01\my-app\node_modules\coa\compile.js' npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:778:27) npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) npm ERR! at node:internal/main/run_main_module:17:47 { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! requireStack: [] npm ERR! }
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2022-07-26T02_16_21_199Z-debug.log
Aborting installation. npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json Deleting my-app/ from D:\myProject\minApps\test01 Done.