我正在使用流星和角度的应用程序。它工作正常,但现在当我尝试启动它时,我明白了:
While processing files with ecmascript (for target web.browser):
module.js:338:15: Cannot find module 'babel-plugin-transform-runtime'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous>
(C:\Users\user\AppData\Local\.meteor\packages\ecmascript\0.4.1\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\meteor\babel-compiler\node_modules\meteor-babel\node_modules\babel-preset-meteor\index.js:4:6)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.getDefaults
(C:\Users\user\AppData\Local\.meteor\packages\ecmascript\0.4.1\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\meteor\babel-compiler\node_modules\meteor-babel\options.js:11:15)
at Object.getDefaultOptions (packages/babel-compiler.js:42:29)
at packages/babel-compiler.js:133:32
at Array.forEach (native)
at BabelCompiler.BCp.processFilesForTarget (packages/babel-compiler.js:99:14)
While minifying app stylesheet:
module.js:338:15: Cannot find module 'source-map-url'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous>
(C:\Users\user\AppData\Local\.meteor\packages\standard-minifier-css\1.0.4\plugin.minifyStdCSS.os\npm\node_modules\meteor\minifier-css\node_modules\meteor\minifier-css\node_modules\css-stringify\node_modules\css\node_modules\source-map-resolve\lib\source-map-resolve-node.js:4:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous>
(C:\Users\user\AppData\Local\.meteor\packages\standard-minifier-css\1.0.4\plugin.minifyStdCSS.os\npm\node_modules\meteor\minifier-css\node_modules\meteor\minifier-css\node_modules\css-stringify\node_modules\css\lib\stringify\source-map-support.js:8:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.module.exports
(C:\Users\user\AppData\Local\.meteor\packages\standard-minifier-css\1.0.4\plugin.minifyStdCSS.os\npm\node_modules\meteor\minifier-css\node_modules\meteor\minifier-css\node_modules\css-stringify\node_modules\css\lib\stringify\index.js:32:22)
at packages/minifyStdCSS_plugin.js:95:33
at CssToolsMinifier.processFilesForBundle (packages/minifyStdCSS_plugin.js:30:16)
While processing files with ecmascript (for target os.windows.x86_32):
module.js:338:15: Cannot find module 'babel-plugin-transform-runtime'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous>
(C:\Users\user\AppData\Local\.meteor\packages\ecmascript\0.4.1\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\meteor\babel-compiler\node_modules\meteor-babel\node_modules\babel-preset-meteor\index.js:4:6)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.getDefaults
(C:\Users\user\AppData\Local\.meteor\packages\ecmascript\0.4.1\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\meteor\babel-compiler\node_modules\meteor-babel\options.js:11:15)
at Object.getDefaultOptions (packages/babel-compiler.js:42:29)
at packages/babel-compiler.js:133:32
at Array.forEach (native)
at BabelCompiler.BCp.processFilesForTarget (packages/babel-compiler.js:99:14)
=> Your application has errors. Waiting for file change.
我尝试运行另一个应用程序,它工作正常,但这个没有。 我正在Windows 10上删除Meteor 1.3
答案 0 :(得分:1)
我在阅读此问题评论https://github.com/meteor/meteor/issues/6609#issuecomment-205016877
后,通过更新到1.3.1版本来解决问题meteor update --release 1.3.1-rc.3
答案 1 :(得分:0)
看起来你只是缺少(至少)两个模块:
尝试安装它们并重试...
答案 2 :(得分:0)
对我来说,我遇到了同样的问题,但通过将我的流星版本从1.3.3.1降级到1.3.2.4来修复它。运行命令
流星更新--release=METEOR@1.3.2.4
虽然这个过程需要一些时间才能完成