2017-04-09 75 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 –