Meteor - 升级到1.4后出错

时间:2016-08-09 11:08:56

标签: meteor

我在Meteor 1.3的一个项目中工作,今天我升级到1.4,当我在运行meteor reset后尝试运行项目时,我收到以下错误:

  While loading plugin `compileScss` from package `fourseven:scss`:

   /Users/mazinalmaskari/.meteor/packages/fourseven_scss/.2.1.1.xb5zda++os.osx.x86_64+web.browser+web.cordova/plugin.compileScss.os.osx.x86_64/npm/compileScss/node_modules/node-sass/lib/index.js:22:11:
   `libsass` bindings not found. Try reinstalling `node-sass`?
   at getBinding
   (/Users/mazinalmaskari/.meteor/packages/fourseven_scss/.2.1.1.xb5zda++os.osx.x86_64+web.browser+web.cordova/plugin.compileScss.os.osx.x86_64/npm/compileScss/node_modules/node-sass/lib/index.js:22:11)
   at Object.<anonymous>
   (/Users/mazinalmaskari/.meteor/packages/fourseven_scss/.2.1.1.xb5zda++os.osx.x86_64+web.browser+web.cordova/plugin.compileScss.os.osx.x86_64/npm/compileScss/node_modules/node-sass/lib/index.js:188:23)
   at Module._compile (module.js:409:26)
   at Object.Module._extensions..js (module.js:416:10)
   at Module.load
   (/Users/mazinalmaskari/.meteor/packages/meteorhacks_npm/.1.5.0.m71zaz++os+web.browser+web.cordova/plugin.initializing-npm-support.os/npm/initializing-npm-support/node_modules/node-echo/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
   at Function.Module._load (module.js:300:12)
   at Module.require (module.js:353:17)
   at require (internal/module.js:12:17)
   at Object.<anonymous>
   (/Users/mazinalmaskari/.meteor/packages/meteor-tool/.1.4.0-1.bf0k83++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/isobuild/bundler.js:1633:22)
   at Object.require
   (/Users/mazinalmaskari/.meteor/packages/meteor-tool/.1.4.0-1.bf0k83++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/isobuild/bundler.js:1607:31)
   at <runJavaScript-18>:15:16
   at <runJavaScript-18>:151:4
   at <runJavaScript-18>:158:3


=> Your application has errors. Waiting for file change.

当我删除包fourseven:scss时,我收到以下错误:

While processing files with stylus (for target web.browser):
   packages/ian:accounts-ui-bootstrap-3/accounts_ui.styl: Stylus compiler error: accounts_ui.styl:85:2
   81| }
   82| .btn-Twitter{
   83|     color: white;
   84|     background-color: #4099FF;
   85| }
   --------^
   86| 
   87| 

   fs.exists is not a function


=> Your application has errors. Waiting for file change.

有关我该怎么办的任何建议请?有没有办法降级到流星1.4?

3 个答案:

答案 0 :(得分:3)

我通过执行以下步骤解决了问题:

meteor remove fourseven:scss

meteor add fourseven:scss@=3.8.1

对于第二个问题,我必须移动手写笔包并再次添加,因为出于某种原因,下载ian:accounts-ui-bootstrap-3没有附带最新版本的stylus

meteor remove stylus

meteor add stylus@=2.513.4

答案 1 :(得分:0)

首先尝试运行meteor reset(警告:这将擦除您当地的Mongo数据库)。

如果这不起作用,请在项目中添加fourseven:scss包,请尝试:

cd yourproject
npm uninstall node-sass
meteor npm install --save-dev node-sass

答案 2 :(得分:0)

尝试以root用户身份运行您的应用

$ sudo meteor