Can't compile / npm / node.js project in windows - c++

I try to run npm install -g command on project that is based on node.js.
using windows and visual studio compiler
i have installed version 2012/2013/2015
each time i run the npm command in the : Developer Command Prompt for VS2012/2013/2015
but i keep getting this error ( part of it ) :
npm http 200 https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/semver/-/semver-1.1.4.tgz
npm http 200 https://registry.npmjs.org/semver/-/semver-1.1.4.tgz
npm http GET https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz
npm http GET https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz
npm http GET https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz
C:\Users\foo.DM-IMCS\.node-gyp\0.10.13\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\Users\foo.DM-
IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\binding.sln]
npm http 200 https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz
npm http 200 https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz
npm http 200 https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz
LINK : fatal error LNK1181: cannot open input file 'C:\Users\foo.DM-IMCS\.node-gyp\0.10.13\\node.lib' [C:\Users\foo.DM-IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\bind
ing.sln]
Project : warning PRJ0018: The following environment variables were not found: [C:\Users\foo.DM-IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\binding.sln]
npm http GET https://registry.npmjs.org/async/0.1.15
npm http GET https://registry.npmjs.org/dequeue/1.0.3
npm http GET https://registry.npmjs.org/semver/-/semver-1.1.4.tgz
npm http 200 https://registry.npmjs.org/async/0.1.15
npm http GET https://registry.npmjs.org/async/-/async-0.1.15.tgz
npm http 200 https://registry.npmjs.org/semver/-/semver-1.1.4.tgz
C:\Users\foo.DM-IMCS\.node-gyp\0.10.13\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\Users\foo.DM-
IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\binding.sln]
npm http 200 https://registry.npmjs.org/dequeue/1.0.3
npm http GET https://registry.npmjs.org/dequeue/-/dequeue-1.0.3.tgz
LINK : fatal error LNK1181: cannot open input file 'C:\Users\foo.DM-IMCS\.node-gyp\0.10.13\\node.lib' [C:\Users\foo.DM-IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\bind
ing.sln]
Project : warning PRJ0018: The following environment variables were not found: [C:\Users\foo.DM-IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\binding.sln]
npm http 200 https://registry.npmjs.org/async/-/async-0.1.15.tgz
npm http 200 https://registry.npmjs.org/dequeue/-/dequeue-1.0.3.tgz
npm http GET https://registry.npmjs.org/log4js
> heapdump#0.3.7 install C:\Users\foo.DM-IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\heapdump
> node-gyp rebuild
C:\Users\foo.DM-IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\heapdump>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_mo
dules\node-gyp\bin\node-gyp.js" rebuild
npm http GET https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz
npm http 200 https://registry.npmjs.org/log4js
npm http GET https://registry.npmjs.org/log4js/-/log4js-0.6.27.tgz
npm http 200 https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz
npm http 200 https://registry.npmjs.org/log4js/-/log4js-0.6.27.tgz
npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 200 https://registry.npmjs.org/uglify-js/1.2.5
npm http 200 https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz
npm http GET https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tgz
npm http 200 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http GET https://registry.npmjs.org/active-x-obfuscator/-/active-x-obfuscator-0.0.1.tgz
npm http 200 https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tgz
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz
npm http 200 https://registry.npmjs.org/active-x-obfuscator/-/active-x-obfuscator-0.0.1.tgz
npm http GET https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tgz
npm http 200 https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tgz
npm http GET https://registry.npmjs.org/underscore/1.8.2
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/semver/-/semver-4.3.6.tgz
npm http GET https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tgz
C:\Users\foo.DM-IMCS\.node-gyp\0.10.13\deps\v8\include\v8.h(214): warning C4506: no definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::Handle<T>)' [C:\Users\foo.DM-
IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\heapdump\build\binding.sln]
LINK : fatal error LNK1181: cannot open input file 'C:\Users\foo.DM-IMCS\.node-gyp\0.10.13\\node.lib' [C:\Users\foo.DM-IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\
node_modules\heapdump\build\binding.sln]
Project : warning PRJ0018: The following environment variables were not found: [C:\Users\foo.DM-IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\heapdump\bui
ld\binding.sln]
npm http 304 https://registry.npmjs.org/readable-stream
gyp npmERR! httpbuild error
200 https://registry.npmjs.org/underscore/1.8.2
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\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:789:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\foo.DM-IMCS\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\heapdump
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.2
gyp ERR! not ok
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.8.2.tgz
unbuild heapdump#0.3.7
unbuild pomelo-admin#0.4.5
npm http 200 https://registry.npmjs.org/semver/-/semver-4.3.6.tgz
unbuild pomelo#1.2.0
npm http 200 https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tgz
npm ERR! weird error 1
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.8.2.tgz
unbuild log4js#0.6.27
unbuild pomelo-scheduler#0.3.8
unbuild socket.io-client#0.9.16
unbuild socket.io#0.9.16
npm http GET https://registry.npmjs.org/zeparser/0.0.5
what is wrong with this gyp command ?
After executing : npm install -g npm
and upgreading to the latest node.js
im getting new set of errors when i try to run in in the dos shell , after executing :
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
Still getting errors :
G:\dev\cpp\Game_servers\pomelo\pomelo>npm cache clean
G:\dev\cpp\Game_servers\pomelo\pomelo>npm install -g
C:\Users\foo.FOO\AppData\Roaming\npm\pomelo -> C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\pomelo\bin\pomelo
> heapdump#0.3.7 install C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\pomelo\node_modules\heapdump
> node-gyp rebuild
C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\pomelo\node_modules\heapdump>if not defined npm_config_node_gyp (node "C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\npm\bin\node
-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
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.targets(64,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using t
he v140 build tools, please install v140 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selec
ting "Upgrade Solution...". [C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\pomelo\node_modules\heapdump\build\addon.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\foo.FOO\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\pomelo\node_modules\heapdump
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:heapdump#0.3.7 heapdump#0.3.7 install: `node-gyp rebuild`
npm WARN install:heapdump#0.3.7 Exit status 1
> ws#0.4.25 install C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws>if not defined npm_config_node_gyp (node "C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-b
in\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
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.targets(64,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using t
he v140 build tools, please install v140 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selec
ting "Upgrade Solution...". [C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\bufferutil.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using t
he v140 build tools, please install v140 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selec
ting "Upgrade Solution...". [C:\Users\foo.FOO\AppData\Roaming\npm\node_modules\pomelo\node_modules\ws\build\validation.vcxproj]
C:\Users\foo.FOO\AppData\Roaming\npm
└── (empty)
npm ERR! code 1
THE SOLUTION !!
the npm should run as :
npm install -d --msvs_version=2013

Related

How to change python version used by the New Solidity Project command in VSCode Azure Blockchain extension?

I am trying to deploy a smart contract on Azure Blockchain Service. I have created a blockchain consortium and connected it to VSCode extension for Azure Blockchain Service. But when I am trying to run the New Solidity Project command from Command Palette, I am getting the following:
[Execute command] × Setting up box
[Execute command] Error: Command failed: npm install
npm WARN deprecated fs-promise#2.0.3: Use mz or fs-extra^3.0 with Promise
Support
npm WARN deprecated tar.gz#1.0.7: ⚠️ WARNING ⚠️ tar.gz module has been
deprecated and your application is vulnerable. Please use tar module
instead: https://npmjs.com/tar
gyp ERR! configure error
gyp ERR! stack Error: Command failed:
C:\Users\manul\AppData\Local\Programs\Python\Python37-32\python.EXE -c
import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program
Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-
gyp.js" "rebuild"
gyp ERR! cwd
d:\Coding\VSProjects\SecureElectronicVoting\.vscode\node_modules\scrypt
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.9
(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
fsevents#1.2.9: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt#6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt#6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\manul\AppData\Roaming\npm-cache\_logs\2019-08-
15T22_18_54_838Z-debug.log
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:653:13)
at Object.installBoxDependencies (C:\Users\manul\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-box\lib\utils\unbox.js:118:1)
at Object.setUpBox (C:\Users\manul\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-box\lib\utils\index.js:62:1)
at Object.unbox (C:\Users\manul\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-box\box.js:58:1)
[Execute command] Truffle v5.0.32 (core: 5.0.32)
Node v10.15.0
[Execute command] Finished running command
I understand that this is because this command is trying to use Python3 while it should use Python2.7 (so that the print "%s.%s.%s" doesn't give a syntax error). I tried changing the python.pythonpath in settings.json to C:/Python27/python.exe and changing the python interpreter in vscode to Python2.7, but it still gives error. I have both paths to python3 and python2.7 in my windows path variable.
You can identify which Python version node-gyp should use in one of the following ways:
If node-gyp is called by way of npm, and you have multiple versions of Python installed, then you can set npm's 'python' config
key to the appropriate value:
$ npm config set python /path/to/executable/python
If the PYTHON environment variable is set to the path of a Python executable, then that version will be used, if it is a compatible
version.
If the NODE_GYP_FORCE_PYTHON environment variable is set to the path of a Python executable, it will be used instead of any of the
other configured or builtin Python search paths. If it's not a
compatible version, no further searching will be done.
You can use set command in cmd dispaly environment variable.
PS: Using node-gyp in Windows needs Visual C++ build tools, Python 2.7 (v3.x.x is not supported) and some config. You can
Install all the required tools and configurations using Microsoft's
windows-build-tools by running npm install -g windows-build-tools from
an elevated PowerShell (run as Administrator).
See:
set python version: nodejs/node-gyp: Node.js native addon build
tool
Environment setup and configuration: nodejs-guidelines/windows-environment.md at master ·
microsoft/nodejs-guidelines
my other answer: https://stackoverflow.com/a/59370747/11949765

NPM install: Platform Toolset = v141 cannot be found

I'm trying to install this library Barcode-Scanner-npm but the installation fails and displays this error:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build t
ools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 bui
ld tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
ck the solution, and then selecting "Retarget solution". [C:\Users\bla\Desktop\bla\myProject\node_modules\#serialport\bin
dings\build\bindings.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\bla\Desktop\bla\myProject\node_modules\#serialport\bindings
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN myProject#1.0.0 No description
npm WARN myProject#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! #serialport/bindings#2.0.2 install: `prebuild-install --tag-prefix #serialport/bindings# || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the #serialport/bindings#2.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\bla\AppData\Roaming\npm-cache\_logs\2018-09-10T10_13_47_454Z-debug.log
I tried some solutions I found on the web like installing this:
npm i windows-build-tools
but it doesn't work for me.
I got VS2017 installed and also the Platform Toolset v141 as you can see here (last checkbox): VS17 Updater
Can you try installing windows-build-tools this way
npm install --global --production windows-build-tools
Open a cmd.exe and see, what version of MSBuild is on your path. If there is one and it is an older version (as was the case for me), remove it from the path - at least for the time of your npm install - and try again.
See also my answer here for slightly more details: https://stackoverflow.com/a/54300218/709537

error MSB8007: The Platform for project XXX is invalid. Platform='x64'

I have switched from a 32 bits to a 64 bits laptop and I am trying to npm install a node.js project with a dependency to "swisseph": "0.5.6".
Everything was working fine under 32 bits, but now it is not working anymore. I get the following error message:
C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes>npm install
|
> swisseph#0.5.6 install C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\node_modules\swisseph
> node-gyp rebuild
C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\node_modules\swisseph>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
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\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platf
orm for project 'swissephz.vcxproj' is invalid. Platform='x64'. You may be seeing this message because you are trying
to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this proje
ct. [C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\node_modules\swisseph\build\deps\swisseph\swissephz.vc
xproj]
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\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\node_modules\swisseph
gyp ERR! node -v v4.2.3
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! swisseph#0.5.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swisseph#0.5.6 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the swisseph 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 swisseph
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\jverstrynge\Documents\Private\Free Time\ChartVibes\npm-debug.log
I have Microsoft Visual C++ 2010 Express installed. Anybody knows how to solve this?
To build x64 project with Visual C++ 2010 Express download and install the Windows Software Development Kit version 7.1
Visual C++ 2010 Express does not include a 64 bit compiler, but the SDK does. If you still doesn't have x64 compiler for Visual C++ 2010 please read this: http://support.microsoft.com/kb/2519277

changed default gcc version, now compiling problems

For an installation I had to change my default gcc compiler version. I had some compilation issues with the version I used so I downloaded several other versions via macports, and one of them worked for my installation finally.
I'm almost sure that the one I used before was gcc4.2, listed in my ports as: llvm-gcc42 .
In two other cases now I am facing compilation problems of c++ files. I'm not knowledgeable with c++, I'm using the compiler just for the compilation of some - mostly node.js - modules or now, a package for the atom editor.
Here is what I get, that leads me to the assumtion that something with the c++ compiler is not correct:
cc1plus: error: unrecognized command line option "-std=gnu++0x"
I could get rid of this in the first case by changing the default gcc version. But I cannot try several versions everytime.
So: Which is the gcc version I should use or is there anything else that could cause this? gcc5, the latest gives me the same..
In a specific case: Problem with installing termrk (module for the atom editor)
gcc --version
gcc (MacPorts gcc5 5.2.0_0) 5.2.0
[...]
There are two ways to install atom packages: Inside the editor with the gui and with the command line tool apm. Neither one works, but I get different error messages.
1. inside the gui:
> pty.js#0.2.13 install /private/var/folders/nl/2ppbw8fn0cjbw04pdqbxmqtr0000gn/T/apm-install-dir-115913-1105-1g6fykw/node_modules/Termrk/node_modules/pty.js
> node-gyp rebuild
CXX(target) Release/obj.target/pty/src/unix/pty.o
cc1plus: error: unrecognized command line option "-std=gnu++0x"
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 12.6.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/nl/2ppbw8fn0cjbw04pdqbxmqtr0000gn/T/apm-install-dir-115913-1105-1g6fykw/node_modules/Termrk/node_modules/pty.js
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Darwin 12.6.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/michael/.atom/.apm/.apmrc" "--userconfig" "/Users/michael/.atom/.apmrc" "install" "/private/var/folders/nl/2ppbw8fn0cjbw04pdqbxmqtr0000gn/T/d-115913-1105-1hg4ytj/package.tgz" "--target=0.30.7" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code ELIFECYCLE
npm ERR! pty.js#0.2.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pty.js#0.2.13 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the pty.js 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 pty.js
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/nl/2ppbw8fn0cjbw04pdqbxmqtr0000gn/T/apm-install-dir-115913-1105-1g6fykw/npm-debug.log
1. In the terminal:
~ michael$ sudo apm install termrk
Installing termrk to /Users/michael/.atom/packages ✗
> pty.js#0.2.13 install /private/tmp/apm-install-dir-115913-1063-2zj63h/node_modules/Termrk/node_modules/pty.js
> node-gyp rebuild
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
node.js:844
var cwd = process.cwd();
^
Error: EACCES, permission denied
at Function.startup.resolveArgv0 (node.js:844:23)
at startup (node.js:58:13)
at node.js:935:3
npm ERR! Darwin 12.6.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/michael/.atom/.apm/.apmrc" "--userconfig" "/Users/michael/.atom/.apmrc" "install" "/private/tmp/d-115913-1063-1cgkfyq/package.tgz" "--target=0.30.7" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code ELIFECYCLE
npm ERR! pty.js#0.2.13 install: `node-gyp rebuild`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the pty.js#0.2.13 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the pty.js 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 pty.js
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /private/tmp/apm-install-dir-115913-1063-2zj63h/npm-debug.log
That is a valid option for GCC 5.2 so if it says it's unrecognized then it means you are not using GCC 5.2.
You're probably still compiling with the old GCC 4.2 version.

Installing node.js package Taunus on WIndows 10

I am trying to install Taunus locally on my Windows 10, following how-to-guide.
I have installed Node.js.
I have installed Python 2.7.
I get some error with strange symbols, something about .NET and C++.
I have installed latest windows updates and also tried to set up C++ distributing package
But at the end I stiil get the error:
vokec#DESKTOP-LQHIC1P MINGW64 /e/dev/getting-started
$ npm install --save taunus taunus-express express
npm WARN package.json getting-started#1.0.0 No description
npm WARN package.json getting-started#1.0.0 No repository field.
npm WARN package.json getting-started#1.0.0 No README data
npm WARN optional dep failed, continuing fsevents#0.3.8
npm WARN deprecated CSSselect#0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat#0.4.7: the module is now available as 'css-what'
> contextify#0.1.14 install E:\dev\getting-started\node_modules\taunus\node_modules\hget\node_modules\html-md\node_modules\jsdom\node_modules\contextify
> node-gyp rebuild
E:\dev\getting-started\node_modules\taunus\node_modules\hget\node_modules\html-md\node_modules\jsdom\node_modules\contextify>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
▒▒▒▒஥▒▒▒ ▒஥▒⮢ ▒ ▒⮬ ▒襭▒▒ ▒▒ ▒▒▒▒▒▒. ▒⮡▒ ▒▒▒▒▒▒▒ ▒▒ࠫ▒▒▒쭮▒ ▒▒▒▒஥▒▒▒, ▒▒▒▒▒▒▒ ▒▒ࠬ▒▒▒ "/m".
MSBUILD : error MSB3428: ▒▒▒▒㧪▒ ▒▒▒▒▒▒▒▒▒ Visual C++ "VCBuild.exe" ▒▒▒▒▒▒▒▒▒▒. ▒▒▒ᮡ▒ ▒襭▒▒ ▒஡▒▒▒▒: 1) ▒▒⠭▒▒▒▒ .NET Framework 2.0 SDK, 2) ▒▒⠭▒▒▒▒ Microsoft Visual Studio 2005 ▒▒▒ 3) 㪠▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒ ▒▒⥬▒▒▒ ▒▒▒, ▒᫨ ▒▒▒▒▒▒▒▒▒ ▒▒⠭▒▒▒▒▒ ▒ ▒▒㣮▒ ▒▒▒▒. [E:\dev\getting-started\node_modules\taunus\node_modules\hget\node_modules\html-md\node_modules\jsdom\node_modules\contextify\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)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\dev\getting-started\node_modules\taunus\node_modules\hget\node_modules\html-md\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "taunus" "taunus-express" "express"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! contextify#0.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify#0.1.14 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify 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 contextify
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:\dev\getting-started\npm-debug.log
Problem solved by installing Microsoft Visual Studio Community Edition with checked C++ language.