Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with babel-cli v6 #82

Open
cvn opened this issue Sep 18, 2016 · 1 comment
Open

Errors with babel-cli v6 #82

cvn opened this issue Sep 18, 2016 · 1 comment

Comments

@cvn
Copy link

cvn commented Sep 18, 2016

I installed tower-of-babel recently and followed the instructions in the setup step, npm install babel-cli -g. This installs babel-cli 6.x. I went through a few errors while running babel-node with the exercises (listed here for SEO).

  • Error: Cannot find module 'babel-runtime/helpers/create-class'
  • SyntaxError: Unexpected token import
  • Error: Cannot find module 'babel-runtime/helpers/interop-require'
  • Could not run: [BABEL] math.js: Unknown option: .../tower-of-babel/.babelrc.presets

I was able to resolve them with additional babel 6 configuration, but ultimately, using babel 5 was the simplest solution:

npm uninstall babel-cli -g
npm install [email protected] -g

If anyone is experiencing these problems, see if that helps.

@aramonc
Copy link

aramonc commented Oct 16, 2016

I was getting Error: Cannot find module 'babel-runtime/helpers/create-class' & deleting node_modules & re-running npm install fixed it. Then again I'm not installing the work-shopper globally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants