2016-04-09 5 views
0

を構築することはできませんリアクト私はに位置ガイド次午前:npm installを呼び出して、しかしhttps://facebook.github.io/react-native/docs/getting-started.htmlは、ネイティブが

を、エラーが表示されます。

> [email protected] install C:\Users\KJA\ReactNativeProjects\AwesomeProject\node_ 
modules\bufferutil 
> node-gyp rebuild 


C:\Users\KJA\ReactNativeProjects\AwesomeProject\node_modules\bufferutil>if not d 
efined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\n 
ode-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild) else (node 
"" rebuild) 
gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT 
HON env variable. 
gyp ERR! stack  at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod 
e_modules\node-gyp\lib\configure.js:401:14) 
gyp ERR! stack  at C:\Program Files\nodejs\node_modules\npm\node_modules\node 
-gyp\lib\configure.js:356:11 
gyp ERR! stack  at FSReqWrap.oncomplete (fs.js:82:15) 
gyp ERR! System Windows_NT 6.1.7601 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej 
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd C:\Users\KJA\ReactNativeProjects\AwesomeProject\node_modules\buffer 
util 
gyp ERR! node -v v5.7.0 
gyp ERR! node-gyp -v v3.2.1 
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild` 
npm WARN install:[email protected] Exit status 1 

> [email protected] install C:\Users\KJA\ReactNativeProjects\AwesomeProject\n 
ode_modules\utf-8-validate 
> node-gyp rebuild 


C:\Users\KJA\ReactNativeProjects\AwesomeProject\node_modules\utf-8-validate>if n 
ot defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\b 
in\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild) else (n 
ode "" rebuild) 
gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT 
HON env variable. 
gyp ERR! stack  at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod 
e_modules\node-gyp\lib\configure.js:401:14) 
gyp ERR! stack  at C:\Program Files\nodejs\node_modules\npm\node_modules\node 
-gyp\lib\configure.js:356:11 
gyp ERR! stack  at FSReqWrap.oncomplete (fs.js:82:15) 
gyp ERR! System Windows_NT 6.1.7601 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej 
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd C:\Users\KJA\ReactNativeProjects\AwesomeProject\node_modules\utf-8- 
validate 
gyp ERR! node -v v5.7.0 
gyp ERR! node-gyp -v v3.2.1 
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp re 
build` 
npm WARN install:[email protected] Exit status 1 
npm WARN optional Skipping failed optional dependency /chokidar/fsevents: 
npm WARN notsup Not compatible with your operating system or architecture: fseve 
[email protected] 

はどのようにこれを軽減することができますか?

npm installを実行しているとき、私は今、ノード-GYP、とPythonの2.7.35のバージョンが、ダウンロード

更新は、エラーが表示されます。

gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe 
` failed with exit code: 1 
gyp ERR! stack  at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\ 
npm\node_modules\node-gyp\lib\build.js:276:23) 
gyp ERR! stack  at emitTwo (events.js:100:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:185:7) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_proces 
s.js:200:12) 
gyp ERR! System Windows_NT 6.1.7601 
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej 
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" 
gyp ERR! cwd C:\Users\KJA\ReactNativeProjects\AwesomeProject\node_modules\utf-8- 
validate 
gyp ERR! node -v v5.7.0 
gyp ERR! node-gyp -v v3.2.1 
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp re 
build` 
npm WARN install:[email protected] Exit status 1 
npm WARN optional Skipping failed optional dependency /chokidar/fsevents: 
npm WARN notsup Not compatible with your operating system or architecture: fseve 
[email protected] 

答えて

2

あなたがWindows上で、私は見ますノード-Gypエラー

これはすでに実際にはよくdocumentedです。私は詳細については、そのスレッドを読むことをお勧めします。

しかし、そのエラーメッセージに基づいて、それはPythonを見つけることができないと言います。あなたはpythonがインストールされ、適切にあなたのパスに入れていますか?

この問題のスレッドでは、Visual C++ビルドツールをインストールして、ノードとgypの問題を解決する方法について説明しています。だからそれを試して、それが動作するかどうかを見てください。

+0

私はpythonをダウンロードしましたが、\ binフォルダはありません... – Sauron

+0

私はこの環境で何かをしているノンストップ問題がありました。私はnode-gypとpythonの2.7.xバージョンをダウンロードしましたが、npm installを実行すると、エラーが表示されます: – Sauron

+0

私はこれを動作させました!!、少なくとも私が指摘したことをパスします。私は反応ネイティブスタートを実行していません – Sauron

関連する問題