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

Cannot install hydrogen #1324

Closed
acboulet opened this issue Jun 1, 2018 · 3 comments
Closed

Cannot install hydrogen #1324

acboulet opened this issue Jun 1, 2018 · 3 comments

Comments

@acboulet
Copy link

acboulet commented Jun 1, 2018

Description:
I'm having difficulties installing Hydrogen through atom or through command lines. Any help would be greatly appreciated.

[Description of the issue]
Every time I try to install Hydrogen I get the same error log. I've tried reopening atom, and two different installation methods. I'm using Windows 10- 64bit.
Steps to Reproduce:

  1. Find Hydrogen through Atom install settings
  2. Attempt install -> See log

1a. Try 'apm install hydrogen' through command.
2a. Same error log as below.

Versions:

Which OS and which version of Hydrogen and Atom are you running?
I'm using Windows 10-64 bit. Trying to install Hydrogen 2.5.0 on the update Atom for 1.27.2 x64bit
You can get this information from copy and pasting the output of atom --version from the command line.

Logs:
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\Users\acb\AppData\Local\atom\app-1.27.2\resources\app\apm\bin\node.exe" "C:\Users\acb\AppData\Local\atom\app-1.27.2\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\acb\.atom\.apm\.apmrc" "--userconfig" "C:\Users\acb\.atom\.apmrc" "install" "C:\Users\acb\AppData\Local\Temp\d-11851-9352-1updmjr.o0ups3jtt9\package.tgz" "--runtime=electron" "--target=1.7.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! file C:\Users\acbou.atom.apm\uuid\3.2.1\package\package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\acbou.atom.apm\uuid\3.2.1\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

@BenRussert
Copy link
Member

Is C:\Users\acbou.atom.apm\uuid\3.2.1\package\package.json a valid path? Looks like there is a missing backslash after C:\Users\acb\.... not sure what would cause that.

Are other packages installing correctly?

@jorys-paulin
Copy link

jorys-paulin commented Jun 24, 2018

@BenRussert I have the same problem, also running Windows 10 and the latest version of Atom.
Here are my logs:

Installing hydrogen to C:\Users\pauli\.atom\packages failed

npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\\Users\\pauli\\AppData\\Local\\atom\\app-1.28.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\pauli\\AppData\\Local\\atom\\app-1.28.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\pauli\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\pauli\\.atom\\.apmrc" "install" "C:\\Users\\pauli\\AppData\\Local\\Temp\\d-118524-14072-1qtj8z8.7smglgcik9\\package.tgz" "--runtime=electron" "--target=2.0.3" "--arch=x64" "--global-style" "--msvs_version=2015"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! file C:\Users\pauli\.atom\.apm\etch\0.12.8\package\package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\pauli\.atom\.apm\etch\0.12.8\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\pauli\AppData\Local\Temp\apm-install-dir-118524-14072-3cc06t.ky24mo0f6r\npm-debug.log

Note that the npm-debug.log file mentioned in the bottom doesn't exist, as for its parent directory

@acboulet
Copy link
Author

acboulet commented Jul 7, 2018

I've been unable to reply but started playing with it tonight. I found this link which fixed my issue;

atom/apm#593

I followed it by deleting .apm
Followed by simply reinstalling hydrogen using apm install hydrogen

Hope this helps anyone having my issues.

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

3 participants