开发者问题收集

创建流星项目会抛出错误

2018-03-27
749

上面说的有同样解决方案的问题没有解决方案,所以它不能解决我的问题。

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

还安装了 meteo, meteor --version 返回 Meteor 1.6.1 。完成这些步骤后,我想创建一个类似 此处 的应用程序。

因此,我写道:

meteor create simple-todos

然后出现此错误:

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

调用的 promise_server.js 函数是

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

有什么解决办法吗?

1个回答

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

meteor npm install 
meteor
Leo Messi
2018-03-27