由于Meteor更新补丁,应用无法启动

时间:2018-08-12 12:59:52

标签: javascript reactjs meteor reaction-commerce

我的应用程序未启动,并且我在localhost:3000上收到此消息,但是当我在具有管理员权限的命令行中键入meteor update --patch时,我无法更新“ Meteor update --patch”,它说无效命令,请告诉我是否可以解决此问题。

=> A patch (Meteor 1.7.0.4) for your current release is available!
   Update this project now with 'meteor update --patch'.
Errors prevented startup:

While processing files with less (for target web.browser):
imports/plugins/included/default-theme/client/styles/main.less:159: Unknown import: {}/node_modules/react-select/less/select.less

While minifying app stylesheet:
module.js:547:15: Cannot find module 'autoprefixer'
  at Function.Module._resolveFilename (module.js:547:15)
  at Function.resolve (internal/module.js:18:19)
  at Object.require (C:\tools\isobuild\bundler.js:1927:34)
  at packages/minifier-postcss/plugin/minify-css.js:52:37
  at Array.forEach (<anonymous>)
  at getPostCSSPlugins (packages/minifier-postcss/plugin/minify-css.js:51:43)
  at packages/minifier-postcss/plugin/minify-css.js:155:36
  at Array.map (<anonymous>)
  at mergeCss (packages/minifier-postcss/plugin/minify-css.js:139:23)
  at CssToolsMinifier.processFilesForBundle (packages/minifier-postcss/plugin/minify-css.js:109:18)


While processing files with less (for target web.browser.legacy):
imports/plugins/included/default-theme/client/styles/main.less:159: Unknown import: {}/node_modules/react-select/less/select.less

While minifying app stylesheet:
module.js:547:15: Cannot find module 'autoprefixer'
  at Function.Module._resolveFilename (module.js:547:15)
  at Function.resolve (internal/module.js:18:19)
  at Object.require (C:\tools\isobuild\bundler.js:1927:34)
  at packages/minifier-postcss/plugin/minify-css.js:52:37
  at Array.forEach (<anonymous>)
  at getPostCSSPlugins (packages/minifier-postcss/plugin/minify-css.js:51:43)
  at packages/minifier-postcss/plugin/minify-css.js:155:36
  at Array.map (<anonymous>)
  at mergeCss (packages/minifier-postcss/plugin/minify-css.js:139:23)
  at CssToolsMinifier.processFilesForBundle (packages/minifier-postcss/plugin/minify-css.js:109:18)


Your application has errors. Waiting for file change.
Started MongoDB.

1 个答案:

答案 0 :(得分:0)

您必须在启动应用程序之前安装依赖项:

meteor npm install