node:internal/modules/cjs/loader:1029 오류해결
본문 바로가기

컴퓨터공부/React

node:internal/modules/cjs/loader:1029 오류해결

by Life & study 2023. 5. 9.
반응형
PS C:\Users\seolzone\IdeaProjects\react_start_02> npx create-react-app react_start_03

Creating a new React app in C:\Users\seolzone\IdeaProjects\react_start_02\react_start_03.

node:internal/modules/cjs/loader:1029
  throw err;
  ^

Error: Cannot find module 'npmlog'
Require stack:
- C:\Users\seolzone\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
    at Function.Module._load (node:internal/modules/cjs/loader:871:27)
    at Module.require (node:internal/modules/cjs/loader:1098:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at C:\Users\seolzone\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:19:13
    at Object.<anonymous> (C:\Users\seolzone\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:75:3)
    at Module._compile (node:internal/modules/cjs/loader:1196:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
    at Module.load (node:internal/modules/cjs/loader:1074:32)
    at Function.Module._load (node:internal/modules/cjs/loader:909:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\seolzone\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js'
  ]
}
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

node:internal/modules/cjs/loader:1029
  throw err;
  ^

Error: Cannot find module 'npmlog'
Require stack:
- C:\Users\seolzone\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
    at Function.Module._load (node:internal/modules/cjs/loader:871:27)
    at Module.require (node:internal/modules/cjs/loader:1098:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at C:\Users\seolzone\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:19:13
    at Object.<anonymous> (C:\Users\seolzone\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:75:3)
    at Module._compile (node:internal/modules/cjs/loader:1196:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
    at Module.load (node:internal/modules/cjs/loader:1074:32)
    at Function.Module._load (node:internal/modules/cjs/loader:909:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\seolzone\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js'
  ]

Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts@0.9.x has failed.

Deleting generated file... package.json
Deleting react_start_03/ from C:\Users\seolzone\IdeaProjects\react_start_02
Done.
PS C:\Users\seolzone\IdeaProjects\react_start_02> npm cache clean --force
node:internal/modules/cjs/loader:1029
  throw err;
  ^

Error: Cannot find module 'npmlog'
Require stack:
- C:\Users\seolzone\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
    at Function.Module._load (node:internal/modules/cjs/loader:871:27)
    at Module.require (node:internal/modules/cjs/loader:1098:19)
    at require (node:internal/modules/cjs/helpers:108:18)
Now using node v8.5.0 (64-bit)

 
'C:\\Users\\seolzone\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js'

 
Error: Cannot find module 'npmlog'
Require stack:
- C:\Users\seolzone\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
 
을 힌트를 얻어서
 
자신의 
C:\Users\seolzone\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js 이 파일을 제거 한다면
 

d

PS C:\Users\seolzone\IdeaProjects\react_start_02> npx create-react-app reactstart03

Creating a new React app in C:\Users\seolzone\IdeaProjects\react_start_02\reactstart03.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...


added 1424 packages in 2m           
                                    
235 packages are looking for funding
  run `npm fund` for details        

Installing template dependencies using npm...

added 62 packages, and changed 1 package in 13s

235 packages are looking for funding
  run `npm fund` for details
Removing template package using npm...


removed 1 package, and audited 1486 packages in 2s

235 packages are looking for funding
  run `npm fund` for details

6 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm start
    Starts the development server.

  npm run build
    Bundles the app into static files for production.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd reactstart03
  npm start

Happy hacking!

 
이라고 나올것이다 큐ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ
d

반응형

'컴퓨터공부 > React' 카테고리의 다른 글

[생활코딩] React 배포하는 방법  (0) 2023.05.16
[생활코딩] React body 배경css 변경  (0) 2023.05.16
React 오류 01  (0) 2023.05.16
리액트 SNS 사이트  (0) 2022.12.16

댓글