20.07.28 09:39 작성
·
243
0
안녕하세요,
윈도우 환경에서 yarn 을 사용하여 create-react-app을 설치했습니다.
create-react-app <프로젝트 이름>을 사용하여 프로젝트를 생성하려고 하는데,
아래와 같은 오류가 나면서 안되네요. 어떻게 해결해야 하나요??
Error: Cannot find module './encoding/utf8'
Require stack:
- C:\Users\charm\Documents\bus-control\node_modules\chardet\index.js
- C:\Users\charm\Documents\bus-control\node_modules\external-editor\main\index.js
- C:\Users\charm\Documents\bus-control\node_modules\inquirer\lib\prompts\editor.js
- C:\Users\charm\Documents\bus-control\node_modules\inquirer\lib\inquirer.js
- C:\Users\charm\Documents\bus-control\node_modules\react-dev-utils\browsersHelper.js
- C:\Users\charm\Documents\bus-control\node_modules\react-scripts\scripts\init.js
- C:\Users\charm\Documents\bus-control\[eval]
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1065:15)
at Function.Module._load (internal/modules/cjs/loader.js:911:27)
at Module.require (internal/modules/cjs/loader.js:1125:19)
at require (internal/modules/cjs/helpers.js:75:18)
at Object.<anonymous> (C:\Users\charm\Documents\bus-control\node_modules\chardet\index.js:4:13)
at Module._compile (internal/modules/cjs/loader.js:1236:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1257:10)
at Module.load (internal/modules/cjs/loader.js:1085:32)
at Function.Module._load (internal/modules/cjs/loader.js:950:14)
at Module.require (internal/modules/cjs/loader.js:1125:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\charm\\Documents\\bus-control\\node_modules\\chardet\\index.js',
'C:\\Users\\charm\\Documents\\bus-control\\node_modules\\external-editor\\main\\index.js',
'C:\\Users\\charm\\Documents\\bus-control\\node_modules\\inquirer\\lib\\prompts\\editor.js',
'C:\\Users\\charm\\Documents\\bus-control\\node_modules\\inquirer\\lib\\inquirer.js',
'C:\\Users\\charm\\Documents\\bus-control\\node_modules\\react-dev-utils\\browsersHelper.js',
'C:\\Users\\charm\\Documents\\bus-control\\node_modules\\react-scripts\\scripts\\init.js',
'C:\\Users\\charm\\Documents\\bus-control\\[eval]'
]
답변