2017-04-09 62 views
0

我嘗試在本地機器上安裝meteor可執行文件。流星 - 在命令行上沒有任何東西出現。然後,我嘗試NPM上安裝PowerShell的流星和得到這個:流星未能在本地機器上安裝

Windows PowerShell 
Copyright (C) 2016 Microsoft Corporation. All rights reserved. 

PS C:\WINDOWS\system32> npm install -g meteor 
npm WARN deprecated [email protected]: Please upgrade to 2.2.19 or higher 
npm WARN deprecated [email protected]: Use uuid module instead 
C:\Users\Owner\AppData\Roaming\npm\meteor -> C:\Users\Owner\AppData\Roaming\npm\node_modules\meteor\app\meteor\meteor.js 

> [email protected] install C:\Users\Owner\AppData\Roaming\npm\node_modules\meteor\node_modules\bson 
> node install.js || (exit 0) 

================================================================================ 
=                    = 
= Attempting to build bson c++ extension          = 
= Windows: no build will be attempted as binaries are prepackaged   = 
= Unix: on failure the package will still install without the C++ extension = 
=                    = 
================================================================================ 

> [email protected] install C:\Users\Owner\AppData\Roaming\npm\node_modules\meteor\node_modules\fibers 
> node ./build.js 

(node:9716) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead. 
events.js:160 
     throw er; // Unhandled 'error' event 
    ^

Error: spawn node-gyp ENOENT 
    at exports._errnoException (util.js:1018:11) 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) 
    at onErrorNT (internal/child_process.js:367:16) 
    at _combinedTickCallback (internal/process/next_tick.js:80:11) 
    at process._tickCallback (internal/process/next_tick.js:104:9) 
    at Module.runMain (module.js:606:11) 
    at run (bootstrap_node.js:393:7) 
    at startup (bootstrap_node.js:150:9) 
    at bootstrap_node.js:508:3 
C:\Users\Owner\AppData\Roaming\npm 
`-- (empty) 

npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins 
tall" "-g" "meteor" 
npm ERR! node v6.10.1 
npm ERR! npm v3.10.10 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] install: `node ./build.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node ./build.js'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the fibers package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node ./build.js 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs fibers 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls fibers 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\WINDOWS\system32\npm-debug.log 
npm ERR! code 1 

上的Git的Bash同樣的命令變成了相同的結果。這怎麼解決?我應該注意到我嘗試了「以管理員身份運行」powershell和git bash。

+0

窗戶安裝流星正確的方法是使用官方安裝程序現在。你可以在這裏找到它:https://www.meteor.com/install –

回答

0

在Windows下使用流星安裝程序安裝流星: https://www.meteor.com/install

+0

我試過安裝程序,但它也無法顯示當我輸入流星的版本 - 版本號 –

+0

如果你有機會訪問流星cli try meteor show meteor –