nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.93k stars 333 forks source link

atom "Failed to activate the Hydrogen package" #1947

Closed AverageComet250 closed 4 years ago

AverageComet250 commented 4 years ago

I installed hydrogen this morning and am now so mad It won't let me use it. It seems this error(or something similar) was already reported and fixed. I tried to follow that, but it still failed. Here's my error log by the way:

` Atom: 1.47.0 x64 Electron: 5.0.13 OS: Microsoft Windows 10 Home Thrown From: Hydrogen package 2.14.1

Stack Trace

Failed to activate the Hydrogen package

At Cannot find module 'C:\Users\Shravan Mandava MBY\.atom\packages\Hydrogen\node_modules\@nteract\mathjax\lib\index.js'. Please verify that the package.json has a valid "main" entry

Error: Cannot find module 'C:\Users\Shravan Mandava MBY\.atom\packages\Hydrogen\node_modules\@nteract\mathjax\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 (~/AppData/Local/atom/app-1.47.0/resources/electron.asar/common/reset-search-paths.js:43:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:155434)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:13:30)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:30:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:6:43)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:11:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:13:36)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:27:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:150998)
    at Module.load (internal/modules/cjs/loader.js:701:32)

Commands

     -0:12.2.0 hydrogen:run (span.syntax--entity.syntax--name.syntax--function)

Non-Core Packages

file-icons 2.1.41 
gently-syntax 0.2.1 
Hydrogen 2.14.1 
open_in_cmd 0.6.1 
script 3.26.0 
teletype 0.13.4 

` Please Help

AverageComet250 commented 4 years ago

Just realised that 4 other people already reported this. I will close this thread because of that

ozika commented 4 years ago

can you point me to the other 4 issues?

ucchiee commented 4 years ago

today I installed Hydrogen and got the same error.

i couldn't find the same issue, so i posted here...

here's my stack trace

[Enter steps to reproduce:]

  1. ...
  2. ...

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

Stack Trace

Failed to activate the Hydrogen package

At Cannot find module '/Users/<username>/.atom/packages/Hydrogen/node_modules/@nteract/mathjax/lib/index.js'. Please verify that the package.json has a valid "main" entry

Error: Cannot find module '/Users/<username>/.atom/packages/Hydrogen/node_modules/@nteract/mathjax/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/markdown/lib/markdown-render.js:13:30)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:30: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/markdown/lib/index.js:6:43)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:11: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/components/media/markdown.js:13:36)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.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/node_modules/@nteract/outputs/lib/components/media/index.js:11:18)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/index.js:20:3)

Commands

  2x -0:14 core:close (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:08.9.0 hydrogen:run-and-move-down (input.hidden-input)

Non-Core Packages

atom-beautify 0.33.4 
atom-clock 0.1.18 
autocomplete-paths 2.12.2 
autocomplete-python 1.16.0 
file-icons 2.1.41 
git-log 0.4.1 
highlight-selected 0.17.0 
Hydrogen 2.14.1 
kite 0.184.0 
minimap 4.29.9 
minimap-bookmarks 0.4.2 
minimap-git-diff 4.3.1 
minimap-highlight-selected 4.6.1 
platformio-ide-terminal 2.10.0 
Honza9723 commented 4 years ago

[Enter steps to reproduce:]

  1. ...import numpy as np

  2. ... I tried this also with other versions of hydrogen, it generates the same error

Atom: 1.47.0 x64 Electron: 5.0.13 OS: Microsoft Windows 10 Home Thrown From: Hydrogen package 2.10.2

Stack Trace

Failed to activate the Hydrogen package

At Cannot find module 'C:\Users\janze\.atom\packages\Hydrogen\node_modules\@nteract\mathjax\lib\index.js'. Please verify that the package.json has a valid "main" entry

Error: Cannot find module 'C:\Users\janze\.atom\packages\Hydrogen\node_modules\@nteract\mathjax\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 (~/AppData/Local/atom/app-1.47.0/resources/electron.asar/common/reset-search-paths.js:43:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:155434)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:13:30)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:30:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:6:43)
    at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:11:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:13:36)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:27:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/index.js:11:18)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/index.js:20:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/index.js:24:28)
    at /packages/Hydrogen/node_modules/@nteract/outputs/lib/index.js:27:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/components/result-view/display.js:4:28)
    at /packages/Hydrogen/lib/components/result-view/display.js:65:2)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/store/output.js:8:25)
    at /packages/Hydrogen/lib/store/output.js:62:33)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/store/watch.js:4:30)
    at /packages/Hydrogen/lib/store/watch.js:11:32)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/store/watches.js:4:46)
    at /packages/Hydrogen/lib/store/watches.js:11:34)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/kernel.js:14:28)
    at /packages/Hydrogen/lib/kernel.js:187:28)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/kernel-manager.js:7:37)
    at /packages/Hydrogen/lib/kernel-manager.js:179:35)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/store/index.js:21:36)
    at /packages/Hydrogen/lib/store/index.js:297:31)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/utils.js:10:30)
    at /packages/Hydrogen/lib/utils.js:293:2)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/kernel-picker.js:4:23)
    at /packages/Hydrogen/lib/kernel-picker.js:8:34)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
    at /packages/Hydrogen/lib/main.js:13:26)
    at /packages/Hydrogen/lib/main.js:638:24)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/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 (internal/modules/cjs/helpers.js:14:16)
    at customRequire (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:1:735013)
    at Package.requireMainModule (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3310163)
    at Package.activateNow (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3298147)
    at ~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:14:1879
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:1201250)
    at Emitter.emit (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:1202691)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:349208)
    at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:348051)
    at /packages/title-bar-replacer/lib/title-bar-replacer-view.js:242:35)
    at HTMLDivElement.dispatch (/packages/title-bar-replacer/node_modules/jquery/dist/jquery.js:5429:27)
    at HTMLDivElement.elemData.handle (/packages/title-bar-replacer/node_modules/jquery/dist/jquery.js:5233:28)

Commands

     -1:32.8.0 hydrogen:run (atom-text-editor.editor.is-focused.has-selection)
     -1:21.3.0 find-and-replace:show (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -1:15.8.0 command-palette:toggle (input.hidden-input)
     -1:15 core:paste (input.hidden-input)
     -1:14.3.0 core:confirm (input.hidden-input)
 17x -1:13.4.0 core:backspace (input.hidden-input)

Non-Core Packages

gpp-compiler 3.0.7 
Hydrogen 2.10.2 
hyperclick 0.1.5 
indent-detective 0.4.0 
ink 0.12.4 
julia-client 0.12.5 
language-julia 0.19.3 
latex-completions 0.3.6 
title-bar-replacer 1.8.3 
tool-bar 1.3.0 
tree-view-auto-fold 1.3.0 
uber-juno 0.3.0 
gsidorov commented 4 years ago

Getting the same exact error on Windows

Cannot find module 'C:\Users\aicrypto.atom\packages\Hydrogen\node_modules\ansi-to-react\lib\index.js'. Please verify that the package.json has a valid "main" entry Hide Stack Trace Error: Cannot find module 'C:\Users\aicrypto.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 (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\electron.asar\common\reset-search-paths.js:43:12) at Function.get_Module._resolveFilename (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\:11:155434) at Module.require (file:///C:/Users/aicrypto/AppData/Local/atom/app-1.47.0/resources/app.asar/static/index.js:61:43) at require (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\:11:146766) at Object. (C:\Users\aicrypto.atom\packages\Hydrogen\node_modules\@nteract\outputs\lib\components\kernel-output-error.js:13:41) at Object. (C:\Users\aicrypto.atom\packages\Hydrogen\node_modules\@nteract\outputs\lib\components\kernel-output-error.js:44:3) at Module.get_Module._compile (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\:11:147450) at Object.value [as .js] (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\: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 (file:///C:/Users/aicrypto/AppData/Local/atom/app-1.47.0/resources/app.asar/static/index.js:72:46) at require (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\:11:146766) at Object. (C:\Users\aicrypto.atom\packages\Hydrogen\node_modules\@nteract\outputs\lib\index.js:14:29) at Object. (C:\Users\aicrypto.atom\packages\Hydrogen\node_modules\@nteract\outputs\lib\index.js:27:3) at Module.get_Module._compile (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\:11:147450) at Object.value [as .js] (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\: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 (file:///C:/Users/aicrypto/AppData/Local/atom/app-1.47.0/resources/app.asar/static/index.js:72:46) at require (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\:11:146766) at Object. (file:///C:/Users/aicrypto/.atom/packages/Hydrogen/lib/components/result-view/display.js:5:38) at Object. (file:///C:/Users/aicrypto/.atom/packages/Hydrogen/lib/components/result-view/display.js:82:23) at Module.get_Module._compile (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\:11:147450) at Object.value [as .js] (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static\:11:150998) at Module.load (internal/modules/cjs/loader.js:701:32)

AverageComet250 commented 4 years ago

what hydrogen version are you on

AverageComet250 commented 4 years ago

The below link contains the thread for this same issue, but it has a solution near the bottom. IF YOU HAVE THIS ISSUE THEN USE THAT THREAD NOT THIS ONE. I hope I make myself clear.

https://github.com/nteract/hydrogen/issues/1945

tojin12341za commented 4 years ago

I installed hydrogen this morning and am now so mad It won't let me use it. It seems this error(or something similar) was already reported and fixed. I tried to follow that, but it still failed. Here's my error log by the way:

` Atom: 1.47.0 x64 Electron: 5.0.13 OS: Microsoft Windows 10 Home Thrown From: Hydrogen package 2.14.1

Stack Trace Failed to activate the Hydrogen package

At Cannot find module 'C:\Users\Shravan Mandava MBY.atom\packages\Hydrogen\node_modules\@nteract\mathjax\lib\index.js'. Please verify that the package.json has a valid "main" entry

Error: Cannot find module 'C:\Users\Shravan Mandava MBY.atom\packages\Hydrogen\node_modules\@nteract\mathjax\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 (~/AppData/Local/atom/app-1.47.0/resources/electron.asar/common/reset-search-paths.js:43:12) at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:155434) at Module.require (/app.asar/static/index.js:61:43) at require (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:13:30) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:30:3) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:6:43) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:11:3) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:13:36) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:27:3) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:150998) at Module.load (internal/modules/cjs/loader.js:701:32) Commands -0:12.2.0 hydrogen:run (span.syntax--entity.syntax--name.syntax--function) Non-Core Packages file-icons 2.1.41 gently-syntax 0.2.1 Hydrogen 2.14.1 open_in_cmd 0.6.1 script 3.26.0 teletype 0.13.4 ` Please Help

@AverageComet250 AverageComet250 added the bug 🐛 label 12 days ago @AverageComet250 ทิป Author AverageComet250 commented 12 days ago Just realised that 4 other people already reported this. I will close this thread because of that

@AverageComet250 AverageComet250 closed this 12 days ago @ozika ทิป ozika commented 12 days ago can you point me to the other 4 issues?

@tomato-300yen ทิป tomato-300yen commented 12 days ago • today I installed Hydrogen and got the same error.

i couldn't find the same issue, so i posted here...

here's my stack trace

[Enter steps to reproduce:]

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

Stack Trace Failed to activate the Hydrogen package

At Cannot find module '/Users//.atom/packages/Hydrogen/node_modules/@nteract/mathjax/lib/index.js'. Please verify that the package.json has a valid "main" entry

Error: Cannot find module '/Users//.atom/packages/Hydrogen/node_modules/@nteract/mathjax/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/:11:155434) at Module.require (/app.asar/static/index.js:61:43) at require (/Applications/Atom.app/Contents/Resources/app/static/:11:146766) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:13:30) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:30:3) at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147450) at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/: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/:11:146766) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:6:43) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:11:3) at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147450) at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/: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/:11:146766) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:13:36) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:27:3) at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/:11:147450) at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/: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/:11:146766) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/index.js:11:18) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/index.js:20:3) Commands 2x -0:14 core:close (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui) -0:08.9.0 hydrogen:run-and-move-down (input.hidden-input) Non-Core Packages atom-beautify 0.33.4 atom-clock 0.1.18 autocomplete-paths 2.12.2 autocomplete-python 1.16.0 file-icons 2.1.41 git-log 0.4.1 highlight-selected 0.17.0 Hydrogen 2.14.1 kite 0.184.0 minimap 4.29.9 minimap-bookmarks 0.4.2 minimap-git-diff 4.3.1 minimap-highlight-selected 4.6.1 platformio-ide-terminal 2.10.0 @Honza9723 ทิป Honza9723 commented 11 days ago [Enter steps to reproduce:]

...import numpy as np

... I tried this also with other versions of hydrogen, it generates the same error

Atom: 1.47.0 x64 Electron: 5.0.13 OS: Microsoft Windows 10 Home Thrown From: Hydrogen package 2.10.2

Stack Trace Failed to activate the Hydrogen package

At Cannot find module 'C:\Users\janze.atom\packages\Hydrogen\node_modules\@nteract\mathjax\lib\index.js'. Please verify that the package.json has a valid "main" entry

Error: Cannot find module 'C:\Users\janze.atom\packages\Hydrogen\node_modules\@nteract\mathjax\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 (~/AppData/Local/atom/app-1.47.0/resources/electron.asar/common/reset-search-paths.js:43:12) at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:155434) at Module.require (/app.asar/static/index.js:61:43) at require (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:13:30) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/markdown-render.js:30:3) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:6:43) at /packages/Hydrogen/node_modules/@nteract/markdown/lib/index.js:11:3) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:13:36) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/markdown.js:27:3) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/index.js:11:18) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/components/media/index.js:20:3) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/index.js:24:28) at /packages/Hydrogen/node_modules/@nteract/outputs/lib/index.js:27:3) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/components/result-view/display.js:4:28) at /packages/Hydrogen/lib/components/result-view/display.js:65:2) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/store/output.js:8:25) at /packages/Hydrogen/lib/store/output.js:62:33) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/store/watch.js:4:30) at /packages/Hydrogen/lib/store/watch.js:11:32) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/store/watches.js:4:46) at /packages/Hydrogen/lib/store/watches.js:11:34) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/kernel.js:14:28) at /packages/Hydrogen/lib/kernel.js:187:28) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/kernel-manager.js:7:37) at /packages/Hydrogen/lib/kernel-manager.js:179:35) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/store/index.js:21:36) at /packages/Hydrogen/lib/store/index.js:297:31) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/utils.js:10:30) at /packages/Hydrogen/lib/utils.js:293:2) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/kernel-picker.js:4:23) at /packages/Hydrogen/lib/kernel-picker.js:8:34) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:146766) at /packages/Hydrogen/lib/main.js:13:26) at /packages/Hydrogen/lib/main.js:638:24) at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:147450) at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/: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 (internal/modules/cjs/helpers.js:14:16) at customRequire (~/AppData/Local/atom/app-1.47.0/resources/app/static/:1:735013) at Package.requireMainModule (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:3310163) at Package.activateNow (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:3298147) at ~/AppData/Local/atom/app-1.47.0/resources/app/static/:14:1879 at Function.simpleDispatch (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:1201250) at Emitter.emit (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:1202691) at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:349208) at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.47.0/resources/app/static/:11:348051) at /packages/title-bar-replacer/lib/title-bar-replacer-view.js:242:35) at HTMLDivElement.dispatch (/packages/title-bar-replacer/node_modules/jquery/dist/jquery.js:5429:27) at HTMLDivElement.elemData.handle (/packages/title-bar-replacer/node_modules/jquery/dist/jquery.js:5233:28) Commands -1:32.8.0 hydrogen:run (atom-text-editor.editor.is-focused.has-selection) -1:21.3.0 find-and-replace:show (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack) -1:15.8.0 command-palette:toggle (input.hidden-input) -1:15 core:paste (input.hidden-input) -1:14.3.0 core:confirm (input.hidden-input) 17x -1:13.4.0 core:backspace (input.hidden-input) Non-Core Packages gpp-compiler 3.0.7 Hydrogen 2.10.2 hyperclick 0.1.5 indent-detective 0.4.0 ink 0.12.4 julia-client 0.12.5 language-julia 0.19.3 latex-completions 0.3.6 title-bar-replacer 1.8.3 tool-bar 1.3.0 tree-view-auto-fold 1.3.0 uber-juno 0.3.0 @gsidorov ทิป gsidorov commented 8 days ago Getting the same exact error on Windows

Cannot find module 'C:\Users\aicrypto.atom\packages\Hydrogen\node_modules\ansi-to-react\lib\index.js'. Please verify that the package.json has a valid "main" entry Hide Stack Trace Error: Cannot find module 'C:\Users\aicrypto.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 (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\electron.asar\common\reset-search-paths.js:43:12) at Function.get_Module._resolveFilename (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static:11:155434) at Module.require (file:///C:/Users/aicrypto/AppData/Local/atom/app-1.47.0/resources/app.asar/static/index.js:61:43) at require (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static:11:146766) at Object. (C:\Users\aicrypto.atom\packages\Hydrogen\node_modules@nteract\outputs\lib\components\kernel-output-error.js:13:41) at Object. (C:\Users\aicrypto.atom\packages\Hydrogen\node_modules@nteract\outputs\lib\components\kernel-output-error.js:44:3) at Module.get_Module._compile (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static:11:147450) at Object.value [as .js] (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static: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 (file:///C:/Users/aicrypto/AppData/Local/atom/app-1.47.0/resources/app.asar/static/index.js:72:46) at require (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static:11:146766) at Object. (C:\Users\aicrypto.atom\packages\Hydrogen\node_modules@nteract\outputs\lib\index.js:14:29) at Object. (C:\Users\aicrypto.atom\packages\Hydrogen\node_modules@nteract\outputs\lib\index.js:27:3) at Module.get_Module._compile (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static:11:147450) at Object.value [as .js] (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static: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 (file:///C:/Users/aicrypto/AppData/Local/atom/app-1.47.0/resources/app.asar/static/index.js:72:46) at require (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static:11:146766) at Object. (file:///C:/Users/aicrypto/.atom/packages/Hydrogen/lib/components/result-view/display.js:5:38) at Object. (file:///C:/Users/aicrypto/.atom/packages/Hydrogen/lib/components/result-view/display.js:82:23) at Module.get_Module._compile (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static:11:147450) at Object.value [as .js] (C:\Users\aicrypto\AppData\Local\atom\app-1.47.0\resources\app\static:11:150998) at Module.load (internal/modules/cjs/loader.js:701:32) Duplicate of #

motoy-asaph-musan commented 4 years ago

I have gotten the same error

Cannot find module './lib/rng' Require stack:

cryobiochem commented 4 years ago

Hey guys, I have a fix: Go to Atom package installer and search for "lodash-snippets": https://atom.io/packages/lodash-snippets Install, restart Atom, and Hydrogen should work again.

lancaster2124 commented 4 years ago

Hey guys, I have a fix: Go to Atom package installer and search for "lodash-snippets": https://atom.io/packages/lodash-snippets Install, restart Atom, and Hydrogen should work again.

You are a life-saver! I've never had an issue with Hydrogen get solved so quickly. Thanks so much, friend. :)

lancaster2124 commented 4 years ago

Hey guys, I have a fix: Go to Atom package installer and search for "lodash-snippets": https://atom.io/packages/lodash-snippets Install, restart Atom, and Hydrogen should work again.

You are a life-saver! I've never had an issue with Hydrogen get solved so quickly. Thanks so much, friend. :)

Hey all, as an update: It seems like you'll occasionally have to uninstall lodash-snippets, re-install it, and restart Atom. I've had to re-install a couple times to get it to work again.

AverageComet250 commented 4 years ago

Hey guys being the OP of this post, I get emails for every comment on the post. Because of this and because the post is closed, I'd like one more post to be done by @lancaster2124 about how to get hydrogen to work when you get the error. If anyone finds it helpful, I'd rather they either share it with other people or just leave the post, so no that my inbox doesn't fill with spam and so that a solution is easy to find. Thx.