react 프로젝트를 만들고 잘 만들어졌는지 확인하려 npm run start를 커맨드에 입력하였다.
sh: react-scripts: command not found
이런 에러가 출력됐다.
package가 다운로드되지 않아서 나는 에러인줄 알고 npm i을 입력했으나 똑같은 에러를 뱉어냈다.
참고로 npm i 는 npm install과 같다.
해결방법
rm -rf node_modules
npm i
node_modules를 제거하고 다시 설치했으나 또 똑같은 문제가 발생한다.
npm i -g react-scripts
npm i
이렇게 하니 문제가 해결 됐다.
'에러 모음' 카테고리의 다른 글
TypeError: The "code" argument must be of type number. Received type string ('SIGINT') (0) | 2024.05.10 |
---|---|
백준 runtime error/error: ENOENT: no such file or directory (0) | 2024.05.06 |
[Error] Postgre install error (0) | 2024.05.01 |
[Error] Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy. (0) | 2024.03.11 |
[NestJS] req undefined (0) | 2024.02.23 |