简体   繁体   English

创建流星项目会引发错误

[英]Creating meteor project throws error

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 . 我已经安装了Node,在cmd中写入node -v返回v8.10.0

Also installed meteor, meteor --version returns Meteor 1.6.1 . 还安装了流星, meteor --version返回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; 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抛出错误; ^ ^

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! 错误:错误:无法为测试软件包安装npm依赖项:命令失败: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错误! Cannot read property 'match' of undefined 无法读取未定义的属性“匹配”

npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! 可以在以下位置找到该运行的完整日志:npm ERR!
C:\\Users\\Rares\\AppData\\Roaming\\npm-cache_logs\\2018-03-27T20_09_26_892Z-debug.log npm ERR! C:\\ Users \\ Rares \\ AppData \\ Roaming \\ npm-cache_logs \\ 2018-03-27T20_09_26_892Z-debug.log npm错误! Cannot read property 'match' of undefined 无法读取未定义的属性“匹配”

npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! 可以在以下位置找到该运行的完整日志:npm ERR!
C:\\Users\\Rares\\AppData\\Roaming\\npm-cache_logs\\2018-03-27T20_09_26_892Z-debug.log C:\\ Users \\用户拉雷什\\应用程序数据\\漫游\\ 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 从promise_server.js调用的函数是

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM