-
카테고리
-
세부 분야
프론트엔드
-
해결 여부
미해결
1.3강 npm run dev 안되는 문제
24.07.02 01:03 작성 24.07.02 02:56 수정 조회수 66
0
문제)
의존성 설치 후 npm run dev를 기동하면
$ npm run dev
> test-example-shopping-mall@0.0.0 dev
> concurrently --kill-others 'npm run dev:server' 'npm run dev:ui'
[0] ''npm'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α�, �Ǵ�
[0] ��ġ ������ �ƴմϴ�.
[1] 'run'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α�, �Ǵ�
[1] ��ġ ������ �ƴմϴ�.
[2] ���� �̸�, ���� �̸� �Ǵ� ���� ���̺� ������ �߸��Ǿ����ϴ�.
[3] ''npm'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α�, �Ǵ�
[3] ��ġ ������ �ƴմϴ�.
[4] 'run'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α�, �Ǵ�
[4] ��ġ ������ �ƴմϴ�.
[4] run exited with code 1
--> Sending SIGTERM to other processes..
[3] 'npm exited with code 1
--> Sending SIGTERM to other processes..
--> Sending SIGTERM to other processes..
[1] run exited with code 1
--> Sending SIGTERM to other processes..
[0] 'npm exited with code 1
--> Sending SIGTERM to other processes..
[5] ���� �̸�, ���� �̸� �Ǵ� ���� ���̺� ������ �߸��Ǿ����ϴ�.
[5] dev:ui' exited with code 1
이런 콘솔이 찍히며 테스트 서버가 실행되지 않습니다.
인코딩이 깨져서 뭐가 문젠지 추적을 못하겠어요ㅠㅠ
node 버전은 강의와 동일하게 19.9.0으로 맞춰두었습니다.
+) 인코딩이 깨지는 문제는 vscode터미널 말고 다른 커맨드창을 이용하니 해결 되었습니다.
> test-example-shopping-mall@0.0.0 dev
> concurrently --kill-others 'npm run dev:server' 'npm run dev:ui'
[0] ''npm' is not recognized as an internal or external command,
[0] operable program or batch file.
[1] 'run' is not recognized as an internal or external command,
[1] operable program or batch file.
[2] The filename, directory name, or volume label syntax is incorrect.
[3] ''npm' is not recognized as an internal or external command,
[3] operable program or batch file.
[4] 'run' is not recognized as an internal or external command,
[4] operable program or batch file.
[4] run exited with code 1
--> Sending SIGTERM to other processes..
[3] 'npm exited with code 1
--> Sending SIGTERM to other processes..
[2] dev:server' exited with code 1
--> Sending SIGTERM to other processes..
[1] run exited with code 1
--> Sending SIGTERM to other processes..
[0] 'npm exited with code 1
--> Sending SIGTERM to other processes..
[5] The filename, directory name, or volume label syntax is incorrect.
[5] dev:ui' exited with code 1
그런데 여전히 실행이 안됩니다ㅜㅜ
npm을 못찾는거 같은데 환경변수에 따로 등록을 해야하나요? npm -v하면 버전은 잘 나오는데 원인을 모르겠습니다...
현재 환경변수와 버전정보 추가합니다.
![image.png image.png](https://cdn.inflearn.com/public/files/posts/e0793dc9-1450-484a-a0b8-79af04d4b00e/image.png)
![image.png image.png](https://cdn.inflearn.com/public/files/posts/ec8425e2-1d19-406c-8349-57b11f58d3d2/image.png)
![image.png image.png](https://cdn.inflearn.com/public/files/posts/8c1089b3-228d-404c-95db-e28d2cceefcc/image.png)
+) package.json스크립트에서 작은 따옴표를 큰 따옴표로 수정해서 최종적으로 해결되었습니다... 허무하네용ㅋㅋㅋ ㅠ
![image.png image.png](https://cdn.inflearn.com/public/files/posts/2a5f28c7-dfe5-4bae-a631-b4b7f88139ad/image.png)
답변을 작성해보세요.
0
답변 1