Error: The babel-runtime npm package could not be found in your node_modules


#1

Error: The babel-runtime npm package could not be found in your node_modules
directory. Please run the following command to install it:

meteor npm install --save babel-runtime

at babel-runtime.js (packages/babel-runtime.js:35:9)
at fileEvaluate (packages/modules-runtime.js:333:9)
at require (packages/modules-runtime.js:228:16)
at packages/babel-runtime.js:142:15
at packages/babel-runtime.js:153:3
at /home/camcareer/bundle/programs/server/boot.js:338:34
at Array.forEach (<anonymous>)
at Function._.each._.forEach (/home/camcareer/bundle/programs/server/node_modules/underscore/underscore.js:79:11)

#2

For any npm related error the easiest fix is:

  • Follow the advice it gives you and run meteor npm install --save babel-runtime
  • OR, Delete node_modules and package-lock.json (if it exists) and run meteor npm install again

#3

Yes thanks you it worked