Hydrogen: Uncaught Error: Cannot find module '$ATOM_HOME/packages/Hydrogen/node_modules/ansi-to-react/lib/i...

Created on 1 Jun 2020  Â·  10Comments  Â·  Source: nteract/hydrogen

[Enter steps to reproduce:]

  1. Running macOS Catalina 10.15.5
  2. removed atom and all associated files to do a clean install
  3. installed atom
  4. attempted to install Hydrogen

Atom: 1.47.0 x64
Electron: 5.0.13
OS: Mac OS X 10.15.5
Thrown From: Hydrogen package 2.14.1

Stack Trace

Uncaught Error: Cannot find module '/Users/hpm/.atom/packages/Hydrogen/node_modules/ansi-to-react/lib/index.js'. Please verify that the package.json has a valid "main" entry

At internal/modules/cjs/loader.js:248

Error: Cannot find module '/Users/hpm/.atom/packages/Hydrogen/node_modules/ansi-to-react/lib/index.js'. Please verify that the package.json has a valid "main" entry
    at tryPackage (internal/modules/cjs/loader.js:240:19)
    at Function.Module._findPath (internal/modules/cjs/loader.js:378:18)
    at Module._resolveFilename (internal/modules/cjs/loader.js:670:27)
    at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:43:12)
    at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:155434)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/kernel-output-error.js:13:41)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/kernel-output-error.js:44:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150998)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/index.js:14:29)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/index.js:27:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150998)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/components/result-view/display.js:5:38)
    at /packages/Hydrogen/lib/components/result-view/display.js:82:23)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150998)
    at Module.load (internal/modules/cjs/loader.js:701:32)

Commands


Non-Core Packages

Hydrogen 2.14.1 

Most helpful comment

If you are having this problem, I managed to get everything to work by reverting to Hydrogen 2.8:

apm install [email protected]

All 10 comments

Having the same issue on Windows 10

Ubuntu 18.04, Atom 1.47, fresh clean install
SAME issue

Same issue with the same version of Mac Catalina

Same issue on WIndows 10

Same issue on Windows 10

I managed to get this to work again by downgrading hydrogen:

apm install [email protected]


Hans-Peter Marshall, Associate Professor
Cryosphere Geophysics And Remote Sensing (CryoGARS)
Department of Geosciences, Boise State University
1910 University Dr., ERB 3155
Boise, ID 83725-1536
http://earth.boisestate.edu/cryogars
Twitter: @snowradar
[email protected]
(208) 426-1416 (o)
(208) 426-4061 (f)

On Mon, Jun 1, 2020 at 7:24 AM Ghamalam notifications@github.com wrote:

Same issue on Windows 10

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nteract/hydrogen/issues/1948#issuecomment-636859187,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFPT47TDRTHQVO336IZXJRTRUOT2PANCNFSM4NPO232Q
.

If you are having this problem, I managed to get everything to work by reverting to Hydrogen 2.8:

apm install [email protected]

If you are having this problem, I managed to get everything to work by reverting to Hydrogen 2.8:

apm install [email protected]

I installed v2.9.0 before seeing this comment and that does indeed work. Thank you

Solution to this problem! Enjoy your Hydrogen!
https://github.com/tomato-300yen/ansi_to_react_lib_for_hydrogen

Solution to this problem! Enjoy your Hydrogen!
https://github.com/tomato-300yen/ansi_to_react_lib_for_hydrogen

This fix worked for me. Had to check gh-1945 for the next error
Thanks for help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ekoepplin picture ekoepplin  Â·  4Comments

DannyDannyDanny picture DannyDannyDanny  Â·  3Comments

nils-werner picture nils-werner  Â·  3Comments

neurotronix picture neurotronix  Â·  4Comments

Mungoid picture Mungoid  Â·  4Comments