2017-05-26 18 views
3

Windowsシステムのnode.js端末にcreate-react-native-appというコマンドを使用して新しいReact Nativeアプリを作成しようとしました。私は、次の端末エラーを得た:'create-react-native-app'を使用するとエラーが発生する

D:\project>create-react-native-app crna 
Creating a new React Native app in D:\project\crna. 

Installing packages. This might take a couple minutes. 
Installing react-native-scripts... 

npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Suppor 
t 
npm WARN deprecated @exponent/[email protected]: Please switch to @expo/spawn-as 
ync, the new name of this package. It's the same code with our new name. 
npm ERR! shasum check failed for C:\Users\ui-admin\AppData\Local\Temp\npm-3204-a 
eacedd1\registry.npmjs.org\_40exponent\ngrok\-\ngrok-2.2.7.tgz 
npm ERR! Expected: 37fe66f922b1003da2a78c66b7d4d3bc9313e423 
npm ERR! Actual: d134060eb730b880da06d5c040ca933f6a75b613 
npm ERR! From:  https://registry.npmjs.org/@exponent/ngrok/-/ngrok-2.2.7.tgz 

npm ERR! A complete log of this run can be found in: 
npm ERR!  C:\Users\ui-admin\AppData\Roaming\npm-cache\_logs\2017-05-26T09_36_ 
04_379Z-debug.log 
`npm install --save-dev --save-exact react-native-scripts` failed 

誰もがこのエラーに会ったか、それを修正しますか?

答えて

0

私はRubyMineでも同じエラーが発生しましたが、反応ネイティブはnpm 5ではまだ動作しませんでした。あなたはnpm 4に戻ったり、ここで問題をログに記録することができます:https://github.com/npm/npm/issues/16991

私はあなたが最良の賭けが戻って待っていると思います!

+0

うん! リアクションネイティブアプリはnpm 5では動作しません。残念ながら、彼らは いくつかのバグが解決するまでnpm 4または糸を使用することをお勧めします。 – khalifathul

関連する問題