创建流星项目抛出错误 [英] Creating meteor project throws error

查看:51
本文介绍了创建流星项目抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说的有相同解决方案的问题没有解决方案,所以它没有解决我的问题.

我已经安装了 Node,在 cmd 中写入 node -v 返回 v8.10.0.

也安装了meteor,meteor --version返回Meteor 1.6.1.完成这些步骤后,我想创建一个像 here 这样的应用.>

所以,我写道:

meteor 创建简单的待办事项

我收到此错误:

<块引用>

C:\Users\Rares\AppData\Local.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218抛出错误;^

错误:错误:无法为测试包安装 npm 依赖项:命令失败:C:\WINDOWS\system32\cmd.exe/cC:\Users\Rares\AppData\Local.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd安装 --production=false npm ERR!无法读取属性匹配"未定义

npm 错误!可以在以下位置找到此运行的完整日志:npm ERR!
C:\Users\Rares\AppData\Roaming\npm-cache_logs\2018-03-27T20_09_26_892Z-debug.lognpm 错误!无法读取未定义的属性匹配"

npm 错误!可以在以下位置找到此运行的完整日志:npm ERR!
C:\Users\Rares\AppData\Roaming\npm-cache_logs\2018-03-27T20_09_26_892Z-debug.log

 在 Object.error (C:\tools\utils\buildmessage.js:430:11)在 C:\tools\cli\default-npm-deps.js:36:20在 C:\tools\utils\buildmessage.js:334:18在exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)在 C:\tools\utils\buildmessage.js:333:36在exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)在 Object.enterJob (C:\tools\utils\buildmessage.js:324:26)在 Object.install (C:\tools\cli\default-npm-deps.js:27:27)在 Command.func (C:\tools\cli\commands.js:801:36)在 C:\tools\cli\main.js:1523:15

promise_server.js 调用的函数是

function tryCatchNextTick(object, method, args) {尝试 {返回 method.apply(object, args);} 捕捉(错误){process.nextTick(function () {抛出错误;});}}

知道如何解决这个问题吗?

解决方案

就我而言,解决方案是运行以​​下步骤:

meteor npm install流星

The question which was said has the same solution has no solution, so it does not solve my problem.

I've installed Node, writing node -v in cmd returns v8.10.0.

Also installed meteor, meteor --version returns Meteor 1.6.1. After these steps I want to create an app like here.

So, I wrote:

meteor create simple-todos

and I get this error:

C:\Users\Rares\AppData\Local.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218 throw error; ^

Error: Error: Could not install npm dependencies for test-packages: Command failed: C:\WINDOWS\system32\cmd.exe /c C:\Users\Rares\AppData\Local.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd install --production=false npm ERR! Cannot read property 'match' of undefined

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Rares\AppData\Roaming\npm-cache_logs\2018-03-27T20_09_26_892Z-debug.log npm ERR! Cannot read property 'match' of undefined

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Rares\AppData\Roaming\npm-cache_logs\2018-03-27T20_09_26_892Z-debug.log

at Object.error (C:\tools\utils\buildmessage.js:430:11)
at C:\tools\cli\default-npm-deps.js:36:20
at C:\tools\utils\buildmessage.js:334:18
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at C:\tools\utils\buildmessage.js:333:36
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at Object.install (C:\tools\cli\default-npm-deps.js:27:27)
at Command.func (C:\tools\cli\commands.js:801:36)
at C:\tools\cli\main.js:1523:15

The function from promise_server.js invoked is

function tryCatchNextTick(object, method, args) {
  try {
    return method.apply(object, args);
  } catch (error) {
    process.nextTick(function () {
      throw error;
    });
  }
}

Any idea how to solve this?

解决方案

The solution in my case was to run these steps:

meteor npm install 
meteor

这篇关于创建流星项目抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆