React 앱을 처음 만들 때 create-react-app 을 사용한다.
npx create-react-app my-app
아래와 같은 에러가 발생할 수 있다.
npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! errno ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/strip-json-comments: 70080000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation failed:c:\ws\deps\openssl\openssl\providers\implementations\ciphers\ciphercommon_gcm.c:325:
npm ERR!
npm ERR! A complete log of this run can be found in: C:\Users\asoe72\AppData\Local\npm-cache\_logs\2025-02-26T11_27_28_293Z-debug-0.log
npm install --no-audit --save @testing-library/jest-dom@^5.14.1 @testing-library/react@^12.0.0 @testing-library/user-event@^13.2.1 web-vitals@^2.1.0 failed
대처방법:
npm config set legacy-peer-deps true
설명:
The --legacy-peer-deps flag was introduced with v7 as a way to bypass peerDependency auto-installation; it tells NPM to ignore peer dependencies and proceed with the installation anyway. This is how things used to be with NPM v4 through v6.
아래와 같은 에러가 발생했을 때는,
Error: Cannot find module 'ajv/dist/compile/codegen'
다음 명령어가 효과가 있었다;
npm install --save-dev ajv@^8
참고
https://github.com/facebook/create-react-app/issues/12279
Issue while trying to create new project · Issue #12279 · facebook/create-react-app
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: react-complete-guide@0.1.0 npm ERR! Found: react@18.0.0 npm ERR! node_modules/react npm...
github.com
Quasar Error: Cannot find module 'ajv/dist/compile/codegen'
(node:21216) UnhandledPromiseRejectionWarning: Error: Cannot find module 'ajv/dist/compile/codegen' loader.js:815 Function.Module._resolveFilename internal/modules/cjs/loader.js:815:15 loader.j...
stackoverflow.com
'programming > db, web, node.js' 카테고리의 다른 글
[React] React Developer Tools - Components 탭에 아무것도 안 나올 때 (0) | 2025.01.11 |
---|---|
vscode typescript trace 방법 (1) | 2024.02.09 |
Vue PWA (Progressive Web App) (0) | 2022.09.10 |
firebase webapp 개발 (0) | 2021.12.31 |
firebase webapp 개발 - 04. debugging (0) | 2021.12.25 |