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

Unhandled 'error' event on launch #1

Closed
gnestor opened this issue Nov 10, 2015 · 4 comments
Closed

Unhandled 'error' event on launch #1

gnestor opened this issue Nov 10, 2015 · 4 comments

Comments

@gnestor
Copy link
Contributor

gnestor commented Nov 10, 2015

When I run jp-babel I get the following error. The '/usr/local/lib/node_modules/jp-babel/' directory exists, but there is obviously no 'images' subdirectory...not sure why it's looking one...

$ jp-babel
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/jp-babel/images/logo-32x32.png'
    at Error (native)
@n-riesco
Copy link
Owner

Sorry about that. It should work now.

@gnestor
Copy link
Contributor Author

gnestor commented Nov 11, 2015

Thanks @n-riesco. 1 more thing... I get the following error when I try to run a cell in a notebook:

Error: Couldn't find preset "es2015"
    at OptionManager.mergePresets (/usr/local/lib/node_modules/jp-babel/node_modules/babel-core/lib/transformation/file/options/option-manager.js:310:17)
    at OptionManager.mergeOptions (/usr/local/lib/node_modules/jp-babel/node_modules/babel-core/lib/transformation/file/options/option-manager.js:270:12)
    at OptionManager.init (/usr/local/lib/node_modules/jp-babel/node_modules/babel-core/lib/transformation/file/options/option-manager.js:396:10)
    at File.initOptions (/usr/local/lib/node_modules/jp-babel/node_modules/babel-core/lib/transformation/file/index.js:191:75)
    at new File (/usr/local/lib/node_modules/jp-babel/node_modules/babel-core/lib/transformation/file/index.js:122:22)
    at Pipeline.transform (/usr/local/lib/node_modules/jp-babel/node_modules/babel-core/lib/transformation/pipeline.js:42:16)
    at transpile (/usr/local/lib/node_modules/jp-babel/lib/nel.js:57:12)
    at Session._runNow (/usr/local/lib/node_modules/jp-babel/lib/nel.js:337:32)
    at Session.run (/usr/local/lib/node_modules/jp-babel/lib/nel.js:315:14)
    at Kernel.execute_request (/usr/local/lib/node_modules/jp-babel/lib/handlers_v5.js:120:18)

I did a little Googling to see if others were having this issue with the Babel 6 upgrade but couldn't figure it out.

@gnestor
Copy link
Contributor Author

gnestor commented Nov 11, 2015

I installed with Node 5.0 and it was an issue with NPM 3.x (https://github.com/npm/npm/blob/master/CHANGELOG.md#v300-2015-06-25). I installed again with Node 4.1.2 and it worked.

@n-riesco
Copy link
Owner

I've opened issue #2 to track the Error: Couldn't find preset "es2015" bug.

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