所说的问题有相同的解决方案没有解决方案,所以它不能解决我的问题。
我已经安装了 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 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 undefinednpm 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.logat 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;
});
}
}
知道如何解决这个问题吗?
最佳答案
我的案例的解决方案是运行以下步骤:
meteor npm install
meteor
关于javascript - 创建 meteor 项目抛出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49521627/