• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

npm start 가 되지 않을때 어떻게 하나요?

22.08.13 13:48 작성 조회수 3.23k

0

- 질문에 대한 답변은 강의자가 하는 경우도 있고, 수강생 여러분들이 해주시는 경우도 있습니다. 같이 도와가며 공부해요! :)
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요!
- 먼저 유사한 질문이 있었는지 검색해보세요.
- 서로 예의를 지키며 존중하는 ㅁ문화를 만들어가요.
- 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
 
 
아래는 오류메시지 입니다.
 

MACui-MacBook-Air:02 mac$ npm start
npm ERR! Missing script: "start"
npm ERR! 
npm ERR! Did you mean one of these?
npm ERR!     npm star # Mark your favorite packages
npm ERR!     npm stars # View packages marked as favorites
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mac/.npm/_logs/2022-08-13T04_42_44_373Z-debug-0.log
MACui-MacBook-Air:02 mac$ n lts
bash: n: command not found
MACui-MacBook-Air:02 mac$ npm start
npm ERR! Missing script: "start"
npm ERR! 
npm ERR! Did you mean one of these?
npm ERR!     npm star # Mark your favorite packages
npm ERR!     npm stars # View packages marked as favorites
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mac/.npm/_logs/2022-08-13T04_43_52_792Z-debug-0.log
MACui-MacBook-Air:02 mac$ npm start
npm ERR! code EJSONPARSE
npm ERR! path /Users/mac/Desktop/threejs/02/package.json
npm ERR! JSON.parse Unexpected token "{" (0x7B) in JSON at position 541 while parsing near "...: \"^0.143.0\"\n  }\n}\n\n{\n  \"name\": \"threejs..."
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mac/.npm/_logs/2022-08-13T04_45_27_810Z-debug-0.log
MACui-MacBook-Air:02 mac$ npm webpack serve --progress
Unknown command: "webpack"

답변 1

답변을 작성해보세요.

2

아래 그림처럼 나오는 폴더에서 npm start를 실행하신게 맞는지 한번 확인해보시겠어요?
간혹 폴더 경로에서 실수가 있는 경우가 있어서요~

honeynyamnyam님의 프로필

honeynyamnyam

2023.12.10

와.........구글링하다가 겨우 찾았네 감사합니다 !! ㅠㅠ