Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Cannot install #32

Closed
hannesjohansson opened this issue Feb 28, 2014 · 17 comments
Closed

Cannot install #32

hannesjohansson opened this issue Feb 28, 2014 · 17 comments

Comments

@hannesjohansson
Copy link

Hi,

I'm having problems installing this package:

npm http GET https://registry.npmjs.org/season
npm http GET https://registry.npmjs.org/season
npm http GET https://registry.npmjs.org/season
npm http GET https://registry.npmjs.org/season/-/season-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/season/-/season-1.0.2.tgz
npm http GET https://registry.npmjs.org/season/-/season-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/season/-/season-1.0.2.tgz
npm http GET https://registry.npmjs.org/season/-/season-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/season/-/season-1.0.2.tgz
npm ERR! Error: SELF_SIGNED_CERT_IN_CHAIN
npm ERR!     at TLSSocket.<anonymous> (_tls_wrap.js:777:36)
npm ERR!     at TLSSocket.EventEmitter.emit (events.js:98:17)
npm ERR!     at TLSSocket._finishInit (_tls_wrap.js:337:8)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Darwin 13.0.2
npm ERR! command "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/.apmrc" "install" "/Users/hannes.johansson/.atom/.node-gyp/.atom/.apm/emmet/0.4.1/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/3l/8s9sfz7x1mlbwtvcdrz1sqt4fd3575/T/apm-install-dir-114128-5355-1n8eo3s
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.18
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/3l/8s9sfz7x1mlbwtvcdrz1sqt4fd3575/T/apm-install-dir-114128-5355-1n8eo3s/npm-debug.log
npm ERR! not ok code 0
@RobinThrift
Copy link

+1 same here

Update:
This seems to be a problem with npm itself.
To fix: http://blog.npmjs.org/post/78085451721/npms-self-signed-certificate-is-no-more

@sethburtonhall
Copy link

I am having the same problem installing emmet.

I tried npm install npm -g via the comment above, which updated npm successfully.

then I tried installing emmet again with apm install emmet

then I got a new error

gyp info it worked if it ends with ok
gyp info using node-gyp@0.10.10
gyp info using node@0.10.5 | darwin | x64
gyp http GET https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.11.10/node-v0.11.10.tar.gz
gyp http 200 https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.11.10/node-v0.11.10.tar.gz
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: EPERM, utime '/Users/M8M/.atom/.node-gyp/.node-gyp/0.11.10'
gyp ERR! System Darwin 13.0.0
gyp ERR! command "/opt/boxen/nodenv/versions/v0.10.5/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.11.10" "--dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist" "--arch=x64"
gyp ERR! cwd /Users/M8M/.atom
gyp ERR! node -v v0.10.5
gyp ERR! node-gyp -v v0.10.10
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     <https://github.com/TooTallNate/node-gyp/issues>

Then I updated npm-gyp via this fix

when I run apm install emmet I get the same error

gyp info it worked if it ends with ok
gyp info using node-gyp@0.10.10
gyp info using node@0.10.5 | darwin | x64
gyp http GET https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.11.10/node-v0.11.10.tar.gz
gyp http 200 https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.11.10/node-v0.11.10.tar.gz
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: EPERM, utime '/Users/M8M/.atom/.node-gyp/.node-gyp/0.11.10'
gyp ERR! System Darwin 13.0.0
gyp ERR! command "/opt/boxen/nodenv/versions/v0.10.5/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.11.10" "--dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist" "--arch=x64"
gyp ERR! cwd /Users/M8M/.atom
gyp ERR! node -v v0.10.5
gyp ERR! node-gyp -v v0.10.10
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     <https://github.com/TooTallNate/node-gyp/issues>

Any help?

@qwo
Copy link

qwo commented Mar 1, 2014

ive gotten the same error as @middle8media, i've uninstalled/reinstalled node and npm and grabbed the binary off the site.

No resolution/change, This error also happens for me for most other @atom plugins

@kevinsawicki
Copy link
Contributor

@middle8media and @stanzheng What version of node are you using?

@qwo
Copy link

qwo commented Mar 1, 2014

@kevinsawicki
╭─stanzheng@stanzheng-2 ~/code/ ‹master›
╰─$ node -v
v0.10.26
╭─stanzheng@stanzheng-2 ~/code/‹master_›
╰─$ npm -v
1.3.25
╭─stanzheng@stanzheng-2 ~/code/ ‹master_›
╰─$ apm -v
0.16.0

---osx 10.9

@kevinsawicki
Copy link
Contributor

@stanzheng Can you upgrade to Atom 0.62.0 which should include apm 0.17.0 and see if you get the same error?

@qwo
Copy link

qwo commented Mar 1, 2014

@kevinsawicki
I'm now on atom .62 and and apm .17

I did,

╭─stanzheng@stanzheng-2 ~/code/ ‹master_›
╰─$ apm uninstall apm 1 ↵
Uninstalling apm ✓
╭─stanzheng@stanzheng-2 ~/code/ ‹master_›
╰─$ apm -v
0.17.0

─stanzheng@stanzheng-2 ~/code/ ‹master*›
╰─$ apm install emmet
Installing emmet to /Users/stanzheng/.atom/packages
gyp info it worked if it ends with ok
gyp info using node-gyp@0.12.2
gyp info using node@0.10.26 | darwin | x64
gyp http GET https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.11.10/node-v0.11.10.tar.gz
gyp http 200 https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.11.10/node-v0.11.10.tar.gz
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: EPERM, utime '/Users/stanzheng/.atom/.node-gyp/.node-gyp/0.11.10'
gyp ERR! System Darwin 13.0.2
gyp ERR! command "/usr/local/bin/node" "/Users/stanzheng/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.11.10" "--dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist" "--arch=x64"
gyp ERR! cwd /Users/stanzheng/.atom
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! This is a bug in node-gyp.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/TooTallNate/node-gyp/issues

@kevinsawicki
Copy link
Contributor

Can you try blowing away ~/.atom/.node-gyp and try installing again?

@kevinsawicki
Copy link
Contributor

It looks like this is possibly a node-gyp issue: nodejs/node-gyp#222

@sethburtonhall
Copy link

@kevinsawicki

Seth’s MacBook Air: in ~/Sites/lamu/modules/UshahidiUI  on tools-user-list*
$ node -v
v0.10.5
Seth’s MacBook Air: in ~/Sites/lamu/modules/UshahidiUI  on tools-user-list*
$ npm -v
1.3.17
Seth’s MacBook Air: in ~/Sites/lamu/modules/UshahidiUI  on tools-user-list*
$ apm -v
0.17.0

saw the issue and thinking it could be a permissions issue.

@qwo
Copy link

qwo commented Mar 2, 2014

@middle8media try the fix of

 sudo rm -rf ~/.atom/.node-gyp

it looks like it fixed it for me. Thanks @kevinsawicki

@sethburtonhall
Copy link

@stanzheng Yes, removing .node-gyp allowed me to install emmet and other packages correctly. Thanks.

@gjtorikian
Copy link
Contributor

Thanks for looking into this @kevinsawicki ! 😸

@cgddrd
Copy link

cgddrd commented Jun 5, 2014

This still seems to be a problem on Atom v0.100.0, however applying @kevinsawicki 's fix did the trick for me (OSX Mavericks v10.9.3):

 sudo rm -rf ~/.atom/.node-gyp

@AbdelbassitGuellati
Copy link

AbdelbassitGuellati commented Jun 23, 2021

i'm not able to install Emmet packaege on Atom, however i'm getting this error msg!
could someone help me please to install it??

nstalling “emmet@2.4.3” failed.Hide output…

npm ERR! Unexpected end of JSON input while parsing near '...cjiy27dkG\nOfRoApz7iu'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sise.atom.apm_logs\2021-06-23T18_52_09_823Z-debug.log

Capture d’écran 2021-06-23 195621

@sergeche
Copy link
Member

sergeche commented Jun 23, 2021

It's not Emmet issue, it's either Atom or your network provider issue

@AbdelbassitGuellati
Copy link

It's not Emmet issue, it's either Atom or your network provider issue

i see, could you help me to fix it please

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

No branches or pull requests

9 participants