Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

install error in windows 7 #10

Open
yongkangchen opened this issue May 30, 2015 · 9 comments
Open

install error in windows 7 #10

yongkangchen opened this issue May 30, 2015 · 9 comments

Comments

@yongkangchen
Copy link
Contributor

Installing “[email protected]” failed.Hide output…

> [email protected] install C:\Users\YONGKA~1\AppData\Local\Temp\apm-install-dir-115430-8428-1tfu4fs\node_modules\atom-ctags\node_modules\ctags
> node-gyp rebuild


C:\Users\YONGKA~1\AppData\Local\Temp\apm-install-dir-115430-8428-1tfu4fs\node_modules\atom-ctags\node_modules\ctags>node "C:\Users\yongkangchen\Desktop\Atom\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: δ�ܼ��� Visual C++ ������VCBuild.exe����Ҫ���������⣬1) ��װ .NET Framework 2.0 SDK��2) ��װ Microsoft Visual Studio 2005���� 3) ��������������װ��������λ�ã��뽫��λ�����ӵ�ϵͳ·���С� [C:\Users\YONGKA~1\AppData\Local\Temp\apm-install-dir-115430-8428-1tfu4fs\node_modules\atom-ctags\node_modules\ctags\build\binding.sln]

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Users\\yongkangchen\\Desktop\\Atom\\resources\\app\\apm\\bin\\\\node.exe" "C:\\Users\\yongkangchen\\Desktop\\Atom\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\yongkangchen\\Desktop\\Atom\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\yongkangchen\\Desktop\\Atom\\.atom\\.apmrc" "install" "C:\\Users\\YONGKA~1\\AppData\\Local\\Temp\\d-115430-8428-yuoo7y\\package.tgz" "--target=0.22.0" "--arch=ia32"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the ctags 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 ctags
npm ERR! There is likely additional logging output above.

That means user must have Visual Studio installed to use atom package which use native modules?

@yongkangchen
Copy link
Contributor Author

@kevinsawicki do you have any idea about this?

@Dgame
Copy link

Dgame commented Aug 3, 2015

Same error on Win 8.1...

@thomasjo
Copy link

thomasjo commented Aug 3, 2015

Have you installed Visual Studio 2013 (Express is OK) or later? It's required by node-gyp in order to build native packages. Basically it needs access to a recent VC++ compiler.

@Dgame
Copy link

Dgame commented Aug 3, 2015

No, I don't want to use Visual Studio. Is there another way, e.g. gcc/g++?

@thomasjo
Copy link

thomasjo commented Aug 3, 2015

No, I don't want to use Visual Studio. Is there another way, e.g. gcc/g++?

Not to my knowledge, unfortunately. You might be able to get away with just installing the latest Windows SDK, but since I'm not a Windows user I can't easily verify that for you.


For reference: https://github.com/TooTallNate/node-gyp/blob/master/README.md#installation

@Dgame
Copy link

Dgame commented Aug 3, 2015

Ok, that is sad to hear.

@onetrev
Copy link

onetrev commented Aug 4, 2015

Not sure if this helps but with package I was able to build ctags in Windows 8.1 (and now Win 10) without installing Visual Studio at any point.

https://atom.io/packages/symbol-gen

@yongkangchen
Copy link
Contributor Author

I temporary resolved by hardcode:

{Tags} = require(process.resourcesPath + '/app.asar.unpacked/node_modules/symbols-view/node_modules/ctags/build/Release/ctags.node')

in https://github.com/yongkangchen/node-ctags/blob/hardcode/src/ctags.coffee#L1

@n-prat
Copy link

n-prat commented Oct 12, 2015

I had the same install error on Win10 x64.
You have to make sure of the python version being used by npm/node-gyp.
They require python2.7.

Force npm/node-gyp to the correct python:

  • node-gyp --python /path/to/python2.7
    OR - npm config set python /path/to/executable/python2.7
    Personnally, I installed a python2 virtualenv with conda, and did the manual install from a cmd in it.

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

No branches or pull requests

5 participants