[Update]: Problem starting meteor, says "couldn't install npm packages from npm-shrinkwrap: Command failed:"


#1

Hi,

Earlier I had a working setup of reaction running nicely but after I installed “reaction-sample-data” from atmosphere, it stopped working at all, tried removing but couldn’t. Then I went ahead with new “git clone reaction” from the site and tried running from scratch. Except this time I am facing this error message with suggestion of installing some packages:

    bash-4.3$ reaction
                                                                                                                                                                                                
Using settings file at settings/dev.settings.json                                                                                                                                               
                                                                                                                                                                                                
Setting up plugin imports...                                                                                                                                                                    
                                                                                                                                                                                                
Setting up style imports...                                                                                                                                                                     
                                                                                                                                                                                                
[[[[[ ~/Documents/reaction ]]]]]                                                                                                                                                                
                                                                                                                                                                                                
=> Started proxy.                                                                                                                                                                               
=> Started MongoDB.                                                                                                                                                                             
cfs:tempstore: updating npm dependencies -- combined-stream...                                                                                                                                  
cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream...                                                                                                                              
Warning: unable to resolve "es2015" in presets of /home/tatya/Documents/reaction/package.json                                                                                                   
Warning: unable to resolve "react" in presets of /home/tatya/Documents/reaction/package.json                                                                                                    
Warning: unable to resolve "stage-2" in presets of /home/tatya/Documents/reaction/package.json                                                                                                  
Warning: unable to resolve "lodash" in plugins of /home/tatya/Documents/reaction/package.json
Warning: unable to resolve "module-resolver" in plugins of /home/tatya/Documents/reaction/package.json

Unable to resolve some modules:

  "babel-runtime/helpers/typeof" in
/home/tatya/Documents/reaction/client/modules/core/main.js (web.browser)
  "babel-runtime/helpers/toConsumableArray" in
/home/tatya/Documents/reaction/imports/plugins/core/ui-tagnav/client/helpers/tags.js
(web.browser)
  "jquery" in
/home/tatya/Documents/reaction/imports/plugins/core/orders/client/templates/workflow/shippingInvoice.js
(web.browser)
  "babel-runtime/helpers/extends" in
/home/tatya/Documents/reaction/client/modules/core/main.js (web.browser)
  "react" in
/home/tatya/Documents/reaction/imports/plugins/included/ui-search/lib/helpers/ordersTable.js
(web.browser)
  "react-dom" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/helpers/react-template-helper.js
(web.browser)
  "accounting-js" in
/home/tatya/Documents/reaction/imports/plugins/core/orders/client/templates/workflow/shippingInvoice.js
(web.browser)
  "buffer" in /home/tatya/Documents/reaction/client/lib/buffer.js (web.browser)
  "lodash" in /home/tatya/Documents/reaction/client/modules/core/main.js
(web.browser)
  "react-komposer" in /home/tatya/Documents/reaction/lib/api/compose.js
(web.browser)
  "url" in /home/tatya/Documents/reaction/lib/api/helpers.js (web.browser)
  "transliteration" in
/home/tatya/Documents/reaction/client/modules/core/helpers/utils.js
(web.browser)
  "babel-runtime/helpers/createClass" in
/home/tatya/Documents/reaction/imports/plugins/included/product-variant/containers/productGridContainer.js
(web.browser)
  "react-router" in
/home/tatya/Documents/reaction/imports/plugins/core/router/client/browserRouter.js
(web.browser)
  "history/createBrowserHistory" in
/home/tatya/Documents/reaction/imports/plugins/core/router/lib/router.js
(web.browser)
  "history/createMemoryHistory" in
/home/tatya/Documents/reaction/imports/plugins/core/router/lib/router.js
(web.browser)
  "path-to-regexp" in
/home/tatya/Documents/reaction/imports/plugins/core/router/client/browserRouter.js
(web.browser)
  "query-parse" in
/home/tatya/Documents/reaction/imports/plugins/core/router/client/browserRouter.js
(web.browser)
  "immutable" in
/home/tatya/Documents/reaction/imports/plugins/core/layout/lib/components.js
(web.browser)
  "prop-types" in
/home/tatya/Documents/reaction/imports/plugins/included/ui-search/lib/components/searchModal.js
(web.browser)
  "i18next" in /home/tatya/Documents/reaction/client/modules/i18n/main.js
(web.browser)
  "lodash/orderBy" in /home/tatya/Documents/reaction/lib/api/products.js
(web.browser)
  "classnames" in
/home/tatya/Documents/reaction/imports/plugins/included/social/client/components/pinterest.js
(web.browser)
  "classnames/dedupe" in
/home/tatya/Documents/reaction/imports/plugins/core/orders/client/components/ordersList.js
(web.browser)
  "react-textarea-autosize" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/textfield/textfield.js
(web.browser)
  "babel-runtime/helpers/objectWithoutProperties" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/button/button.js
(web.browser)
  "react-addons-create-fragment" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/button/button.jsx
(web.browser)
  "react-tether" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/popover/popover.js
(web.browser)
  "velocity-animate" in
/home/tatya/Documents/reaction/imports/plugins/included/product-variant/components/variantForm.js
(web.browser)
  "velocity-animate/velocity.ui" in
/home/tatya/Documents/reaction/imports/plugins/included/product-variant/components/variantForm.js
(web.browser)
  "react-autosuggest" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/tags/tagItem.js
(web.browser)
  "lodash/debounce" in
/home/tatya/Documents/reaction/imports/plugins/core/ui-tagnav/client/components/tagGroupBody.js
(web.browser)
  "react/lib/update" in
/home/tatya/Documents/reaction/imports/plugins/included/product-variant/containers/productGridContainer.js
(web.browser)
  "dnd-core" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/providers/dragDropProvider.js
(web.browser)
  "react-dnd-html5-backend" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/providers/dragDropProvider.js
(web.browser)
  "react-dnd" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/containers/sortableItem.js
(web.browser)
  "react-measure" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/containers/mediaGalleryContainer.js
(web.browser)
  "velocity-react" in
/home/tatya/Documents/reaction/imports/plugins/core/dashboard/client/components/actionView.js
(web.browser)
  "radium" in
/home/tatya/Documents/reaction/imports/plugins/core/layout/lib/reactionLayout.js
(web.browser)
  "react-dropzone" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/media/mediaGallery.js
(web.browser)
  "match-sorter" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/table/sortableTable.js
(web.browser)
  "react-table" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/table/sortableTable.js
(web.browser)
  "@reactioncommerce/reaction-ui" in
/home/tatya/Documents/reaction/imports/plugins/included/ui-search/lib/components/searchModal.js
(web.browser)
  "react-taco-table" in
/home/tatya/Documents/reaction/imports/plugins/included/ui-search/lib/helpers/ordersTable.js
(web.browser)
  "react-onclickoutside" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/popover/popoverContent.js
(web.browser)
  "react-nouislider" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/slider/slider.js
(web.browser)
  "react-select" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/multiselect/multiselect.js
(web.browser)
  "react-copy-to-clipboard" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/clickToCopy/clickToCopy.js
(web.browser)
  "moment-timezone" in
/home/tatya/Documents/reaction/imports/plugins/core/i18n/client/containers/localizationSettingsContainer.js
(web.browser)
  "moment" in /home/tatya/Documents/reaction/client/modules/i18n/main.js
(web.browser)
  "moment/min/locales.min.js" in
/home/tatya/Documents/reaction/client/modules/core/helpers/templates.js
(web.browser)
  "amplify-store" in
/home/tatya/Documents/reaction/client/modules/core/subscriptions.js
(web.browser)
  "i18next-browser-languagedetector" in
/home/tatya/Documents/reaction/client/modules/i18n/startup.js (web.browser)
  "i18next-localstorage-cache" in
/home/tatya/Documents/reaction/client/modules/i18n/startup.js (web.browser)
  "i18next-sprintf-postprocessor" in
/home/tatya/Documents/reaction/client/modules/i18n/startup.js (web.browser)
  "jquery-i18next" in
/home/tatya/Documents/reaction/client/modules/i18n/startup.js (web.browser)
  "bunyan" in /home/tatya/Documents/reaction/client/modules/logger/index.js
(web.browser)
  "swiper" in
/home/tatya/Documents/reaction/imports/plugins/core/checkout/client/templates/cartDrawer/cartDrawer.js
(web.browser)
  "babel-runtime/helpers/objectDestructuringEmpty" in
/home/tatya/Documents/reaction/imports/plugins/included/sms/client/containers/smsSettingsContainer.js
(web.browser)
  "react-simple-di" in
/home/tatya/Documents/reaction/imports/plugins/included/sms/client/containers/smsSettingsContainer.js
(web.browser)
  "sweetalert2" in
/home/tatya/Documents/reaction/imports/plugins/included/sms/client/actions/settings.js
(web.browser)
  "nodemailer-wellknown" in
/home/tatya/Documents/reaction/imports/plugins/core/email/client/containers/emailConfig.js
(web.browser)
  "nodemailer-wellknown/services.json" in
/home/tatya/Documents/reaction/imports/plugins/core/email/client/containers/emailSettings.js
(web.browser)
  "tether-drop" in
/home/tatya/Documents/reaction/imports/plugins/core/layout/client/templates/layout/admin/admin.js
(web.browser)
  "sweetalert2/dist/sweetalert2.css" in
/home/tatya/Documents/reaction/imports/plugins/core/layout/client/templates/layout/alerts/reactionAlerts.js
(web.browser)
  "react-avatar" in
/home/tatya/Documents/reaction/imports/plugins/core/orders/client/components/ordersList.js
(web.browser)
  "react-router-dom" in
/home/tatya/Documents/reaction/imports/plugins/core/router/client/browserRouter.js
(web.browser)
  "tether-tooltip" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/components/button/button.js
(web.browser)
  "sortablejs" in
/home/tatya/Documents/reaction/imports/plugins/included/product-variant/client/templates/products/productDetail/productImageGallery.js
(web.browser)
  "nouislider-algolia-fork/src/nouislider.css" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/index.js
(web.browser)
  "nouislider-algolia-fork/src/nouislider.pips.css" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/index.js
(web.browser)
  "nouislider-algolia-fork/src/nouislider.tooltips.css" in
/home/tatya/Documents/reaction/imports/plugins/core/ui/client/index.js
(web.browser)
  "bootstrap/dist/js/npm.js" in
/home/tatya/Documents/reaction/imports/plugins/included/default-theme/client/index.js
(web.browser)
  "react-helmet" in
/home/tatya/Documents/reaction/imports/plugins/included/social/client/components/googleplus.js
(web.browser)
  "lodash/merge" in
/home/tatya/Documents/reaction/imports/plugins/included/social/lib/helpers.js
(web.browser)
  "@reactioncommerce/reaction-collections" in
/home/tatya/Documents/reaction/imports/plugins/included/product-variant/containers/variantFormContainer.js
(web.browser)
  "autosize" in
/home/tatya/Documents/reaction/imports/plugins/included/product-variant/client/templates/products/productDetail/edit.js
(web.browser)
  "@reactioncommerce/reaction-router" in
/home/tatya/Documents/reaction/client/modules/router/main.js (web.browser)

If you notice problems related to these missing modules, consider running:

  meteor npm install --save babel-runtime jquery react react-dom accounting-js
meteor-node-stubs lodash react-komposer transliteration react-router history
path-to-regexp query-parse immutable prop-types i18next classnames
react-textarea-autosize react-addons-create-fragment react-tether
velocity-animate react-autosuggest dnd-core react-dnd-html5-backend react-dnd
react-measure velocity-react radium react-dropzone match-sorter react-table
@reactioncommerce react-taco-table react-onclickoutside react-nouislider
react-select react-copy-to-clipboard moment-timezone moment amplify-store
i18next-browser-languagedetector i18next-localstorage-cache
i18next-sprintf-postprocessor jquery-i18next bunyan swiper react-simple-di
sweetalert2 nodemailer-wellknown tether-drop react-avatar react-router-dom
tether-tooltip sortablejs nouislider-algolia-fork bootstrap react-helmet
autosize


Unable to resolve some modules:
=> Errors prevented startup:
   
   While processing files with less (for target web.browser):
   imports/plugins/included/default-theme/client/styles/main.less:154: Unknown
   import: {}/node_modules/react-select/less/select.less
   
   While minifying app stylesheet:
   error: Can't load npm module 'autoprefixer' from
   packages/minifier-postcss_plugin.js. Check your Npm.depends().
   
=> Your application has errors. Waiting for file change.

Then I installed all the packages mentioned and now I get this:

    bash-4.3$ reaction

Using settings file at settings/dev.settings.json

Setting up plugin imports...

Setting up style imports...

[[[[[ ~/Documents/reaction ]]]]]

=> Started proxy.
=> Started MongoDB.
Warning: unable to resolve "es2015" in presets of /home/tatya/Documents/reaction/package.json
Warning: unable to resolve "stage-2" in presets of /home/tatya/Documents/reaction/package.json
Warning: unable to resolve "module-resolver" in plugins of /home/tatya/Documents/reaction/package.json
=> Errors prevented startup:
   
   While processing files with ecmascript (for target web.browser):

   /home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/plugin.js:131:13:
   Plugin 0 specified in "foreign" provided an invalid property of
   "__wrapped__"
   at Plugin.init
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/plugin.js:131:13)
   at Function.normalisePlugin
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
   at
   /home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
   at Array.map (native)
   at Function.normalisePlugins
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
   at OptionManager.mergeOptions
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
   at
   /home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
   at
   /home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
   at Array.map (native)
   at OptionManager.resolvePresets
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
   at OptionManager.mergePresets
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
   at OptionManager.mergeOptions
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
   at OptionManager.init
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
   at File.initOptions
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/index.js:212:65)
   at new File
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/index.js:135:24)
   at Pipeline.transformFromAst
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/pipeline.js:69:16)
   at transform
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:53:30)
   at compile
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:64:14)
   at Cache.Cp.get
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/cache.js:102:19)
   at Object.compile
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:28:23)
   at Object.Babel.compile (packages/babel-compiler.js:54:29)
   at packages/babel-compiler.js:183:22
   at Function.time (/tools/tool-env/profile.js:305:10)
   at profile (packages/babel-compiler.js:226:20)
   at BabelCompiler.BCp.processOneFileForTarget
   (packages/babel-compiler.js:182:20)
   at BabelCompiler.<anonymous> (packages/babel-compiler.js:114:26)
   at Array.forEach (native)
   at BabelCompiler.BCp.processFilesForTarget
   (packages/babel-compiler.js:113:14)
   
   
   While processing files with less (for target web.browser):
   imports/plugins/included/default-theme/client/styles/main.less:154: Unknown
   import: {}/node_modules/react-select/less/select.less
   
   While processing files with ecmascript (for target os.linux.x86_64):

   /home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/logger.js:41:11:
   [BABEL] imports/plugins/core/discounts/lib/collections/schemas/config.js:
   Unknown option: foreign.Children. Check out
   http://babeljs.io/docs/usage/options/ for more information about options.
   
   A common cause of this error is the presence of a configuration options
   object without the corresponding preset name. Example:
   
   Invalid:
   `{ presets: [{option: value}] }`
   Valid:
   `{ presets: [['presetName', {option: value}]] }`
   
   For more detailed information on preset configuration, please see
   http://babeljs.io/docs/plugins/#pluginpresets-options.
   at Logger.error
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/logger.js:41:11)
   at OptionManager.mergeOptions
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:226:20)
   at
   /home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
   at
   /home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
   at Array.map (native)
   at OptionManager.resolvePresets
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
   at OptionManager.mergePresets
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
   at OptionManager.mergeOptions
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
   at OptionManager.init
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
   at File.initOptions
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/index.js:212:65)
   at new File
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/file/index.js:135:24)
   at Pipeline.transformFromAst
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/lib/transformation/pipeline.js:69:16)
   at transform
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:53:30)
   at compile
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:73:14)
   at Cache.Cp.get
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/cache.js:102:19)
   at Object.compile
   (/home/tatya/.meteor/packages/ecmascript/.0.8.2.9fpd9u++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:28:23)
   at Object.Babel.compile (packages/babel-compiler.js:54:29)
   at packages/babel-compiler.js:183:22
   at Function.time (/tools/tool-env/profile.js:305:10)
   at profile (packages/babel-compiler.js:226:20)
   at BabelCompiler.BCp.processOneFileForTarget
   (packages/babel-compiler.js:182:20)
   at BabelCompiler.<anonymous> (packages/babel-compiler.js:114:26)
   at Array.forEach (native)
   at BabelCompiler.BCp.processFilesForTarget
   (packages/babel-compiler.js:113:14)
   
   
=> Your application has errors. Waiting for file change.

I am new to meteor, any help is very much appreciated.


#2

If you do a raw git clone rather than reaction init you just need to run meteor npm install in the root of your Reaction project. That should take care of it.


#3

Thanks for the reply, that solved the problem, but after I “had to” meteor npm install using root privilege, now I’m getting this:

bash-4.3$ reaction 

Using settings file at settings/dev.settings.json

Setting up plugin imports...

Setting up style imports...

[[[[[ ~/Documents/reaction ]]]]]

=> Started proxy.
cfs:tempstore: updating npm dependencies -- combined-stream...
=> Started MongoDB.
cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream...
=> Errors prevented startup:
   
   While building package cfs:tempstore:
   error: couldn't install npm packages from npm-shrinkwrap: Command failed:
   /home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
   install
   npm ERR! path
   /home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/combined-stream/0.0.4/package.tgz.4274385938
   npm ERR! code EACCES
   npm ERR! errno -13
   npm ERR! syscall open
   npm ERR! Error: EACCES: permission denied, open
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/combined-stream/0.0.4/package.tgz.4274385938'
   npm ERR!     at Error (native)
   npm ERR!  { [Error: EACCES: permission denied, open
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/combined-stream/0.0.4/package.tgz.4274385938']
   npm ERR!   errno: -13,
   npm ERR!   code: 'EACCES',
   npm ERR!   syscall: 'open',
   npm ERR!   path:
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/combined-stream/0.0.4/package.tgz.4274385938'
   }
   npm ERR! 
   npm ERR! Please try running this command again as root/Administrator.
   npm ERR! path
   /home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/combined-stream/0.0.4/package.tgz.4274385938
   npm ERR! code EACCES
   npm ERR! errno -13
   npm ERR! syscall open
   npm ERR! Error: EACCES: permission denied, open
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/combined-stream/0.0.4/package.tgz.4274385938'
   npm ERR!     at Error (native)
   npm ERR!  { [Error: EACCES: permission denied, open
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/combined-stream/0.0.4/package.tgz.4274385938']
   npm ERR!   errno: -13,
   npm ERR!   code: 'EACCES',
   npm ERR!   syscall: 'open',
   npm ERR!   path:
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/combined-stream/0.0.4/package.tgz.4274385938'
   }
   npm ERR! 
   npm ERR! Please try running this command again as root/Administrator.
   
   
   While building package cfs:gridfs:
   error: couldn't install npm packages from npm-shrinkwrap: Command failed:
   /home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm
   install
   npm ERR! path
   /home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/buffer-shims/1.0.0/package.tgz.3702706634
   npm ERR! code EACCES
   npm ERR! errno -13
   npm ERR! syscall open
   npm ERR! Error: EACCES: permission denied, open
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/buffer-shims/1.0.0/package.tgz.3702706634'
   npm ERR!     at Error (native)
   npm ERR!  { [Error: EACCES: permission denied, open
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/buffer-shims/1.0.0/package.tgz.3702706634']
   npm ERR!   errno: -13,
   npm ERR!   code: 'EACCES',
   npm ERR!   syscall: 'open',
   npm ERR!   path:
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/buffer-shims/1.0.0/package.tgz.3702706634'
   }
   npm ERR! 
   npm ERR! Please try running this command again as root/Administrator.
   npm ERR! path
   /home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/buffer-shims/1.0.0/package.tgz.3702706634
   npm ERR! code EACCES
   npm ERR! errno -13
   npm ERR! syscall open
   npm ERR! Error: EACCES: permission denied, open
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/buffer-shims/1.0.0/package.tgz.3702706634'
   npm ERR!     at Error (native)
   npm ERR!  { [Error: EACCES: permission denied, open
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/buffer-shims/1.0.0/package.tgz.3702706634']
   npm ERR!   errno: -13,
   npm ERR!   code: 'EACCES',
   npm ERR!   syscall: 'open',
   npm ERR!   path:
   '/home/tatya/.meteor/packages/meteor-tool/.1.5.1.puot9a++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/.npm/buffer-shims/1.0.0/package.tgz.3702706634'
   }
   npm ERR! 
   npm ERR! Please try running this command again as root/Administrator.
   
   
=> Your application has errors. Waiting for file change.

I searched around for it, looked like permissions problem so I made sure owner of files in root project is <username> but it wouldn’t go away.
Again, thanks and sorry for delay in reply.


#4

I have reinstalled node using nvm as non-root user, did reaction init, and again, this is what I get:

reaction init              

Cloning the master branch of Reaction from Github...
Cloning into 'reaction'...

Installing NPM packages...
npm ERR! git fetch -a origin (git://github.com/reactioncommerce/transliteration.git) error: cannot open FETCH_HEAD: Permission denied
npm ERR! path /home/tatya/.meteor/packages/meteor-tool/1.5.1/mt-os.linux.x86_64/dev_bundle/.npm/prop-types/15.5.8/package.tgz.3375392921
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open
npm ERR! Error: EACCES: permission denied, open '/home/tatya/.meteor/packages/meteor-tool/1.5.1/mt-os.linux.x86_64/dev_bundle/.npm/prop-types/15.5.8/package.tgz.3375392921'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES: permission denied, open '/home/tatya/.meteor/packages/meteor-tool/1.5.1/mt-os.linux.x86_64/dev_bundle/.npm/prop-types/15.5.8/package.tgz.3375392921']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'open',
npm ERR!   path: '/home/tatya/.meteor/packages/meteor-tool/1.5.1/mt-os.linux.x86_64/dev_bundle/.npm/prop-types/15.5.8/package.tgz.3375392921',
npm ERR!   parent: 'reaction' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

Error: Node modules were not successfully installed. Exiting.

#5

Looks like you need to fix the permissions that you broke earlier.

sudo chown -R tatya /home/tatya/.meteor

Also, if you’re going to develop on a Linux machine, I recommend reading up on the basics of Linux filesystem permissions.


#6

Hi,
So I did it, it was a permissions problem I was able to fix after reading users and permissions, it was a learning experience and very helpful for me since I switched from windows to linux. Thank you.