npx create - react - app my - app 설치 오류

999 단어 react.
문 제 를 약술 하 다.
『 8195 』 react 문서 에 명령 행 npx create-react-app my-app 을 설치 하 였 으 나 오류 메시지 가 발생 하 였 습 니 다.정 보 는 다음 과 같다.
dell@dell-PC MINGW64 /e/demo
$ npx create-react-app my-app
npm ERR! code ENOLOCAL
npm ERR! Could not install from "Files
odejs
ode_cache\_npx\17244" as it doesnot contain a package.json file. npm ERR! A complete log of this run can be found in: npm ERR! C:\Program Files
odejs
ode_cache\_logs\2018-10-24T06_13_21_695Z-debug.log prefix@latest , :1 npm ERR! code ENOLOCAL npm ERR! Could not install from "Files
odejs
ode_cache\_npx\15084" as it doesnot contain a package.json file. npm ERR! A complete log of this run can be found in: npm ERR! C:\Program Files
odejs
ode_cache\_logs\2018-10-24T06_13_23_624Z-debug.log create-react-app@latest , :1

해결 방법
  • 전체 설치 로 바 꾸 면 됩 니 다
  • npm install -g create-react-app 
    create-react-app myApp
    

    좋은 웹페이지 즐겨찾기