2016-04-09 20 views
0

inşa edemez Tepki: npm install çağıran Ancak https://facebook.github.io/react-native/docs/getting-started.htmlben bulunan rehber takip ediyorum Yerli

, hata ortaya çıkıyor:

> [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] 

Bu nasıl kontrol altına alınabilir?

npm install çalıştırırken şimdi düğüm-gyp ve pitonun 2.7.x versiyonunu ama indirilen

güncelleme, hatalar görüntülenir:

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] 

cevap

2

Windows üzerinde ve gördüğüm bir düğüm hatası.

Bu zaten çok iyi bir şekilde documented. Daha fazla ayrıntı için bu konu dizisini okumanızı tavsiye ederim.

Sadece bu hata iletisine dayanarak, Python'u bulamadığını söylüyor. Python yüklü ve yolunuza uygun bir şekilde yerleştirdiniz mi?

Bu sorun iş parçacığı, node-gip sorunlarını gidermek için Visual C++ Oluşturma Araçları'nı yüklemekten bahseder. O yüzden bunu dene ve işe yarayıp yaramadığını görün.

+0

Python'u indirdim, ancak \ bin klasörü yok ... – Sauron

+0

Bu ortamda hiçbir şey yapmama konusunda kesintisiz sorun yaşadım. Ben node-gyp, ve python 2.7.x sürümünü indirdim, ama şimdi npm yükleme çalıştırırken, hatalar ortaya çıkar: – Sauron

+0

Bunu işe var !!, en azından ben olduğum noktayı geçtim. Tepki-yerel start koşmadım – Sauron

İlgili konular