https://github.com/facebookincubator/create-react-app의 지침에 따라 create-react-app
패키지를 방금 설치했습니다. 내가있어 설치 패키지 목록 후create-react-app : 템플릿이 이전 버전의 핸들 막대로 프리 컴파일되었습니다.
$ create-react-app --version
1.0.4
$ create-react-app myapp
Creating a new React app in /home/...mydir.../myapp.
Installing packages. This might take a couple minutes.
Installing react-scripts...
: 내가 지시 사항을 준수하고 "MyApp를"응용 프로그램을 만든 그 후
Success! Created myapp at /home/...mydir.../myapp
Inside that directory, you can run several commands:
npm start
Starts the development server.
npm run build
Bundles the app into static files for production.
npm test
Starts the test runner.
npm run eject
Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!
We suggest that you begin by typing:
cd myapp
npm start
Happy hacking!
이 좋아,하지만 때 서버를 실행 중입니다. 브라우저 콘솔에 다음 메시지가 나타납니다.
Template was precompiled with an older version of Handlebars than the current
runtime. Please update your precompiler to a newer version (>= 4.0.0) or downgrade
your runtime to an older version (>= 2.0.0-beta.1).
S 버전 :
$ npm ls|grep handlebars
│ │ └─┬ [email protected]
는 또한 "devDependencies"과 "의존성"에서 package.json
에 핸들 버전을 설정하려고했지만 그것은 작동하지 않았다.
해결 방법에 대한 아이디어가 있으십니까?
누군가가 조사 할 수 있도록 문제를 제기하십시오. 어쩌면 일부 종속성이 업데이트되어이 문제가 발생했을 수 있습니다. CRA 자체는 핸들 바와 아무런 관련이 없습니다. –
실은 걱정하지 마시고 방금 제출하셨습니다 : https://github.com/facebookincubator/create-react-app/issues/1589 –
앞으로는 노드 및 npm 버전을 알려주십시오. 그렇지 않으면 이것을 돕고 재현하는 것이 훨씬 더 어렵습니다. –