Spark-server installation error

npm WARN package.json spark-server@0.1.1 No description
npm WARN package.json spark-server@0.1.1 No README data
npm http GET https://registry.npmjs.org/ursa
npm http 304 https://registry.npmjs.org/ursa

> ursa@0.8.1 install C:\Users\User\spark-server\js\node_modules\ursa
> node-gyp configure && node-gyp build && node install.js


C:\Users\User\spark-server\js\node_modules\ursa>node "C:\Program Files\nodejs\no
de_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" co
nfigure

C:\Users\User\spark-server\js\node_modules\ursa>node "C:\Program Files\nodejs\no
de_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" bu
ild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t
argets(64,5): error MSB8020: The build tools for Visual Studio 2010 (Platform T
oolset = 'v100') cannot be found. To build using the v100 build tools, please i
nstall Visual Studio 2010 build tools.  Alternatively, you may upgrade to the c
urrent Visual Studio tools by selecting the Project menu or right-click the sol
ution, and then selecting "Upgrade Solution...". [C:\Users\User\spark-server\js
\node_modules\ursa\build\ursaNative.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd C:\Users\User\spark-server\js\node_modules\ursa
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm ERR! ursa@0.8.1 install: `node-gyp configure && node-gyp build && node insta
ll.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ursa@0.8.1 install script.
npm ERR! This is most likely a problem with the ursa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp configure && node-gyp build && node install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls ursa
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\User\spark-server\js
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\User\spark-server\js\npm-debug.log
npm ERR! not ok code 0

I can’t found “ursaNative.vcxproj” on my computer

Hi @5h177y,

Looks like you need the Visual C++ redistributable so you can build that package on your machine, try installing the prerequisites from this thread near the top:

Thanks!
David

Hi @Dave, Thanks for reply!
I already installed the Visual C++ Redistributable and still got the error

Anyone got any clue? :frowning:

Hmm, which version of windows are you using?

I wonder if you’re running into this?

I just simply add --msvs_version=2012 at the end when installing and it works :smiley: