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

cant install through package manager #1

Open
lucidlips opened this issue Mar 21, 2016 · 5 comments
Open

cant install through package manager #1

lucidlips opened this issue Mar 21, 2016 · 5 comments

Comments

@lucidlips
Copy link

installing through package manager is failing.

"Installing “info-comment@0.1.1” failed.Show output…"

@lucidlips lucidlips changed the title cant instal through package manager cant install through package manager Mar 21, 2016
@ibykow
Copy link
Owner

ibykow commented Mar 27, 2016

Hi, do you mind pasting the output you get?
Also, what os/atom version are you on?
Thanks.

@Septh
Copy link

Septh commented Apr 11, 2016

Hi,

Ran into the same problem. Using Atom 1.6.2 on Windows 7 SP1. Here's Atom output:

> runas@3.1.1 install T:\Windows\apm-install-dir-116311-21492-1winbsn\node_modules\info-comment\node_modules\text-buffer\node_modules\pathwatcher\node_modules\runas
> node-gyp rebuild

T:\Windows\apm-install-dir-116311-21492-1winbsn\node_modules\info-comment\node_modules\text-buffer\node_modules\pathwatcher\node_modules\runas>if not defined npm_config_node_gyp (node "C:\Users\Stephan\AppData\Local\atom\app-1.6.2\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild ) 

> marker-index@3.1.0 install T:\Windows\apm-install-dir-116311-21492-1winbsn\node_modules\info-comment\node_modules\text-buffer\node_modules\marker-index
> node-gyp rebuild

T:\Windows\apm-install-dir-116311-21492-1winbsn\node_modules\info-comment\node_modules\text-buffer\node_modules\marker-index>if not defined npm_config_node_gyp (node "C:\Users\Stephan\AppData\Local\atom\app-1.6.2\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild ) 

> oniguruma@5.1.2 install T:\Windows\apm-install-dir-116311-21492-1winbsn\node_modules\info-comment\node_modules\oniguruma
> node-gyp rebuild

T:\Windows\apm-install-dir-116311-21492-1winbsn\node_modules\info-comment\node_modules\oniguruma>if not defined npm_config_node_gyp (node "C:\Users\Stephan\AppData\Local\atom\app-1.6.2\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild ) 

gypgypgypnpm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Users\\Stephan\\AppData\\Local\\atom\\app-1.6.2\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Stephan\\AppData\\Local\\atom\\app-1.6.2\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Stephan\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Stephan\\.atom\\.apmrc" "install" "T:\\Windows\\d-116311-21492-11twq89\\package.tgz" "--target=0.34.5" "--arch=ia32"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR! runas@3.1.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@3.1.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

@ibykow
Copy link
Owner

ibykow commented Apr 13, 2016

Thanks. I'll have a look at it on my windows pc in a bit.

@shahmalav
Copy link

Hi @ibykow, were you able to look at the issue? I am facing same problem.

@ibykow
Copy link
Owner

ibykow commented Jul 7, 2016

Hi, I've been able to replicate this issue on Win10 x64 , but it hasn't been consistent. When the error pops up, I tried installing/reinstalling the package and it would work.

Also, I haven't been able to replicate this error since installing Visual Studio community edition. It might have something to do with VS installing some necessary .NET dependencies, but that's just a guess.

Besides that, it looks to be a node-gyp problem of some sort. The info-comment plugin doesn't call node-gyp explicitly. Instead, node-gyp is used as part of Atom's package installation process.

A lot of people seem to be dealing with node-gyp/ node-gyp rebuild problems on windows. One of the more straight-forward solutions I've seen being recommended was to remove the C:\Users\USERNAME\.atom\.node-gyp folder.

Here are some of the links I've looked at so far:
emmetio/emmet-atom#32 (delete .node-gyp folder)
atom/atom#11710 (reinstall visual studio from ISO)
http://stackoverflow.com/questions/35293117/npm-install-that-requires-node-gyp-fails-on-windows (install .NET dependencies and reinstall python)

If you've been able to overcome this error with any of the suggestions above, let me know.
I'll keep this thread open for a while longer to see if we can get something working.

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

4 participants