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

install fails on windows #4

Closed
chadbr opened this issue Mar 9, 2017 · 9 comments
Closed

install fails on windows #4

chadbr opened this issue Mar 9, 2017 · 9 comments

Comments

@chadbr
Copy link

chadbr commented Mar 9, 2017

Installing multiview on Windows 10 fails... expected?

C:\dev\git\someApp>node --version
v7.7.2

C:\dev\git\someApp>yarn --version
0.21.3

C:\dev\git\someApp>npm --version
4.1.2

C:\dev\git\someApp>yarn add multiview
yarn add v0.21.3
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] ⠁ buffertools: MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix t
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
error C:\dev\git\someApp\node_modules\buffertools: Command failed.
Exit code: 1
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c node-gyp rebuild
Directory: C:\dev\git\someApp\node_modules\buffertools
Output:
C:\dev\git\someApp\node_modules\buffertools>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\Yarn\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\Program Files (x86)\Yarn\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\dev\git\someApp\node_modules\buffertools\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Program Files (x86)\Yarn\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\chadb_000\.node-gyp\7.7.2\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\chadb_000\.node-gyp\7.7.2',
gyp info spawn args '-Dnode_gyp_dir=C:\Program Files (x86)\Yarn\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\dev\git\someApp\node_modules\buffertools',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\dev\git\someApp\node_modules\buffertools\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=Win32' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:\dev\git\someApp\node_modules\buffertools\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\Yarn\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\Yarn\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\dev\git\someApp\node_modules\buffertools
gyp ERR! node -v v7.7.2
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

C:\dev\git\someApp>

@chadbr
Copy link
Author

chadbr commented Mar 9, 2017

same happens on node 6.10.x also...

@arjunmehta
Copy link
Owner

@chadbr Thank you for this. Looks like buffertools is having issues installing on your machine. I will look into this. One of Multiview's dependencies uses buffertools. I can try updating to the latest version and see if that fixes it. Should take a day or so. Can you help me test out a new version once I put it up?

@chadbr
Copy link
Author

chadbr commented Mar 9, 2017

Absolutely... works great on my mac

Forgot to mention I tried 64bit node also

@arjunmehta
Copy link
Owner

Awesome! Thank you. Something could help confirm this:
Can you just try in a new node project npm install [email protected]

You should get the same errors.

Then try npm install buffertools@latest

Do you get the same errors?

@chadbr
Copy link
Author

chadbr commented Mar 9, 2017

every version I try fails... 2.1.4, 2.1.2, 2.1.0, 2.0.0..

@chadbr
Copy link
Author

chadbr commented Mar 9, 2017

@arjunmehta
Copy link
Owner

Strange. I'm not too familiar with windows at all, but it may be that you need to install the .NET framework on your system to be able to install.

Nonetheless, I am going to update multiview to use the latest modules. It's been a while anyway. :)

I will close this issue if it's apparent that it may just be a one off situation with your system (ie. not having .NET installed for node-gyp to build buffertools).

Thank you for testing buffertools installs!

@arjunmehta
Copy link
Owner

arjunmehta commented Mar 9, 2017

@chadbr I've used a new dependency that should not require buffertools or any gyp installation. :D

npm install multiview@latest

This should solve the issue.

@chadbr
Copy link
Author

chadbr commented Mar 10, 2017

Great - I'll have a look!

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

2 participants