【问题标题】:Meteor fails to install on local machineMeteor 无法在本地机器上安装
【发布时间】:2017-04-09 15:10:06
【问题描述】:

我尝试在我的本地机器上安装流星可执行文件。 meteor --version 在命令行上什么也没有出现。然后我在 powershell 上尝试了 npm install meteor 并得到了这个:

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

PS C:\WINDOWS\system32> npm install -g meteor
npm WARN deprecated mongodb@1.1.11: Please upgrade to 2.2.19 or higher
npm WARN deprecated node-uuid@1.3.3: Use uuid module instead
C:\Users\Owner\AppData\Roaming\npm\meteor -> C:\Users\Owner\AppData\Roaming\npm\node_modules\meteor\app\meteor\meteor.js

> bson@0.1.5 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  =
=                                                                              =
================================================================================

> fibers@0.6.9 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! fibers@0.6.9 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@0.6.9 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 尝试了“以管理员身份运行”。

【问题讨论】:

  • 目前在windows上安装meteor的正确方法是使用官方安装程序。你可以在这里找到它:meteor.com/install

标签: meteor


【解决方案1】:

在 Windows 上,使用流星安装程序安装流星: https://www.meteor.com/install

【讨论】:

  • 我尝试了安装程序,但是当我输入 meteor --version 时它也无法显示版本
  • 如果您可以访问流星 cli,请尝试流星秀流星
猜你喜欢
  • 2013-09-17
  • 2013-08-22
  • 1970-01-01
  • 2016-10-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多