nodejs / node-gyp

Node.js native addon build tool
MIT License
9.87k stars 1.79k forks source link

signed certificate in certificate chain & --cafile not working #1029

Closed rawdon-hume-confsued closed 7 years ago

rawdon-hume-confsued commented 7 years ago

Hi

so i have all the prerequisites from https://github.com/nodejs/node-gyp for a windows PC. I have latest version of node and npm and my .npmrc file is as such

registry=http://registry.npmjs.org/
NODE_TLS_REJECT_UNAUTHORIZED=0
strict-ssl=false
ca=
python=C:\Python27\python.exe
msvs_version=2015
maxsockets=20

the output is always the same, a self cert error . i've tried lots of different options. The issue is because i'm behind a company proxy that puts its own cert on so i can't get around the cert option using cafile option and they are not about to allow the cert to the exceptions. Ideally it be good if you could set the registry location same way you can for npm as then i could point it at an azure cloud VM that I use to host a private npm (using sinopia) that allow me to bypass the proxy. is there wa way to set the registry or even host a copy of it and use that instead?

PS C:\Sass\> node-gyp configure --cafile=(npm get ca) --verbose
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'C:\\Users\\XXX\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'configure',
gyp verb cli   '--cafile=',
gyp verb cli   '--verbose' ]
gyp info using node-gyp@3.4.0
gyp info using node@6.2.1 | win32 | x64
gyp verb command configure []
gyp verb check python checking for Python executable "C:\Python27\python.exe" in the PATH
gyp verb `which` succeeded C:\Python27\python.exe C:\Python27\python.exe
gyp verb check python version `C:\Python27\python.exe -c "import platform; print(platform.python_version());"` returned:
 "2.7.12\r\n"
gyp verb get node dir no --target version specified, falling back to host node version: 6.2.1
gyp verb command install [ '6.2.1' ]
gyp verb install input version string "6.2.1"
gyp verb install installing version: 6.2.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 6.2.1
gyp verb ensuring nodedir is created C:\Users\XXX\.node-gyp\6.2.1
gyp verb created nodedir C:\Users\XXX\.node-gyp\6.2.1
gyp http GET https://nodejs.org/download/release/v6.2.1/node-v6.2.1-headers.tar.gz
gyp verb download using proxy url: "http://websense-wcg.lan:8080"
gyp WARN install got an error, rolling back install
gyp verb command remove [ '6.2.1' ]
gyp verb remove using node-gyp dir: C:\Users\XXX\.node-gyp
gyp verb remove removing target version: 6.2.1
gyp verb remove removing development files for version: 6.2.1
gyp ERR! configure error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack     at Error (native)
gyp ERR! stack     at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
gyp ERR! stack     at emitNone (events.js:86:13)
gyp ERR! stack     at TLSSocket.emit (events.js:185:7)
gyp ERR! stack     at TLSSocket._finishInit (_tls_wrap.js:584:8)
gyp ERR! stack     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\XXX\\AppData\\Roaming\\npm\\node_modules\\node-gyp\
\bin\\node-gyp.js" "configure" "--cafile=" "--verbose"
gyp ERR! cwd C:\Sass
gyp ERR! node -v v6.2.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
PS C:\Sass>

i only want to compile sass buy as node-sass requires node-gyp seesm im stuck with trying to resolve this issue. We been able to work around it but using an older version of node and npm but should be able to use the latest version without all these issues

bnoordhuis commented 7 years ago

The ca property in your .npmrc is empty, it needs to point to a file containing your CA's public key in PEM format.

rawdon-hume-confsued commented 7 years ago

Hi,

thanks for replying :) , i tried changing the config to the below to use the cert that websesnse uses as a pem file, but i still get the same error :(

registry=http://registry.npmjs.org/
NODE_TLS_REJECT_UNAUTHORIZED=0
strict-ssl=false
ca=c:\test.pem
python=C:\Python27\python.exe
msvs_version=2015
maxsockets=20

but i still get

PS C:\Sass> npm install node-sass --verbouse
npm WARN deprecated lodash.assign@4.2.0: This package is deprecated. Use Object.assign.
npm WARN prefer global node-gyp@3.4.0 should be installed with -g

> node-sass@3.10.1 install C:\Sass\node_modules\node-sass
> node scripts/install.js

Start downloading binary at https://github.com/sass/node-sass/releases/download/v3.10.1/win32-x64-48_binding.node
Binary downloaded and installed at C:\Sass\node_modules\node-sass\vendor\win32-x64-48\binding.node

> node-sass@3.10.1 postinstall C:\Sass\node_modules\node-sass
> node scripts/build.js

"C:\Sass\node_modules\node-sass\vendor\win32-x64-48\binding.node" exists.
 testing binary.
Problem with the binary:
Error: %1 is not a valid Win32 application.
\\?\C:\Sass\node_modules\node-sass\vendor\win32-x64-48\binding.node
Manual build incoming.
Building: C:\Program Files\nodejs\node.exe C:\Sass\node_modules\node-gyp\bin\node-gyp.js r
ebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'C:\\Sass\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using node-gyp@3.4.0
gyp info using node@6.2.1 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "C:\Python27\python.exe" in the PATH
gyp verb `which` succeeded C:\Python27\python.exe C:\Python27\python.exe
gyp verb check python version `C:\Python27\python.exe -c "import platform; print(platform.python_version());"` returned:
 "2.7.12\r\n"
gyp verb get node dir no --target version specified, falling back to host node version: 6.2.1
gyp verb command install [ '6.2.1' ]
gyp verb install input version string "6.2.1"
gyp verb install installing version: 6.2.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 6.2.1
gyp verb ensuring nodedir is created C:\Users\XXX\.node-gyp\6.2.1
gyp verb created nodedir C:\Users\XXX\.node-gyp\6.2.1
gyp http GET https://nodejs.org/download/release/v6.2.1/node-v6.2.1-headers.tar.gz
gyp verb download using proxy url: "http://websense-wcg..lan:8080"
gyp WARN install got an error, rolling back install
gyp verb command remove [ '6.2.1' ]
gyp verb remove using node-gyp dir: C:\Users\XXX\.node-gyp
gyp verb remove removing target version: 6.2.1
gyp verb remove removing development files for version: 6.2.1
gyp ERR! configure error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack     at Error (native)
gyp ERR! stack     at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
gyp ERR! stack     at emitNone (events.js:86:13)
gyp ERR! stack     at TLSSocket.emit (events.js:185:7)
gyp ERR! stack     at TLSSocket._finishInit (_tls_wrap.js:584:8)
gyp ERR! stack     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Sass\\ContentSite\\node_modules\\node-
gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_librar
y="
gyp ERR! cwd C:\Sass\node_modules\node-sass
gyp ERR! node -v v6.2.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Build failed
npm WARN example-project@0.1.0 No description
npm WARN example-project@0.1.0 No repository field.
npm WARN example-project@0.1.0 No license field.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins
tall" "node-sass" "--verbouse"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code ELIFECYCLE

npm ERR! node-sass@3.10.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.10.1 postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\sass\npm-debug.log
PS C:\Sass>

even if i use the --cafile option

PS C:\Sass> node-gyp configure --cafile=c:\test.pem --verbose
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'C:\\Users\\XXX\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'configure',
gyp verb cli   '--cafile=c:\\test.pem',
gyp verb cli   '--verbose' ]
gyp info using node-gyp@3.4.0
gyp info using node@6.2.1 | win32 | x64
gyp verb command configure []
gyp verb check python checking for Python executable "C:\Python27\python.exe" in the PATH
gyp verb `which` succeeded C:\Python27\python.exe C:\Python27\python.exe
gyp verb check python version `C:\Python27\python.exe -c "import platform; print(platform.python_version());"` returned:
 "2.7.12\r\n"
gyp verb get node dir no --target version specified, falling back to host node version: 6.2.1
gyp verb command install [ '6.2.1' ]
gyp verb install input version string "6.2.1"
gyp verb install installing version: 6.2.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 6.2.1
gyp verb ensuring nodedir is created C:\Users\XXX\.node-gyp\6.2.1
gyp verb created nodedir C:\Users\XXX\.node-gyp\6.2.1
gyp http GET https://nodejs.org/download/release/v6.2.1/node-v6.2.1-headers.tar.gz
gyp verb download using proxy url: "http://websense-wcg.lan:8080"
gyp WARN install got an error, rolling back install
gyp verb command remove [ '6.2.1' ]
gyp verb remove using node-gyp dir: C:\Users\XXX\.node-gyp
gyp verb remove removing target version: 6.2.1
gyp verb remove removing development files for version: 6.2.1
gyp ERR! configure error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack     at Error (native)
gyp ERR! stack     at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
gyp ERR! stack     at emitNone (events.js:86:13)
gyp ERR! stack     at TLSSocket.emit (events.js:185:7)
gyp ERR! stack     at TLSSocket._finishInit (_tls_wrap.js:584:8)
gyp ERR! stack     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\XXX\\AppData\\Roaming\\npm\\node_modules\\node-gyp\
\bin\\node-gyp.js" "configure" "--cafile=c:\\test.pem" "--verbose"
gyp ERR! cwd C:\Sass>
gyp ERR! node -v v6.2.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
PS C:\Sass>
bnoordhuis commented 7 years ago

I'm not sure I understand. Your proxy connection is over unsecured HTTP so what do you need a custom CA for? If your proxy does MitM, the only way around that is by setting NODE_TLS_REJECT_UNAUTHORIZED=1 in the environment.

rawdon-hume-confsued commented 7 years ago

the proxy may be over http but nodejs.org/download is https. As the company proxy adds its own cert this causes the cert error (or so i believe). I didn't want to use the cert option but all google searches on this issue suggested setting the http and https proxy in .npmrc file (and even in your environmental variables); to the one your corporation uses is the only way to get npm to work over a proxy. I tried using just NODE_TLS_REJECT_UNAUTHORIZED=1 but still the same issue. Is there any way i can specify the repository that node-gyp uses so i could point it at a locally hosted copy of nodejs.org/download/ (this is how i got around hte issue with node/npm using local node repository though sinopia) im total blocked by the cert error. When i google this it seems its not an uncommon issue when working in a company behind a proxy, so you would hope there be more options available to work around the issue ;( Id do a pull request and compile my own version to achieve this if i wanted to learn how to write python (which i don’t) and if i wasn’t requiring this down from npm it self as part of the node-sass dependences

bnoordhuis commented 7 years ago

the proxy may be over http but nodejs.org/download is https. As the company proxy adds its own cert this causes the cert error (or so i believe).

That doesn't sound right. --cafile is for when your proxy or private registry serves a certificate that is signed by an internal CA. The certificate for nodejs.org is signed by a CA that's in the built-in root certificates list, you don't need extra certificates for that.

I think you may have to talk to your network administrators and have them help you troubleshoot this issue.

I tried using just NODE_TLS_REJECT_UNAUTHORIZED=1 but still the same issue.

How exactly did you set it? It completely disables certificate verification so it sounds unlikely that you still get the same error afterwards.

bnoordhuis commented 7 years ago

the proxy may be over http but nodejs.org/download is https. As the company proxy adds its own cert this causes the cert error (or so i believe).

Reading this again, do you mean your proxy does MitM? I.e., it decrypts the traffic, then re-encrypts it again using an internal cert/key before sending it on to you?

--cafile in theory works for that but such proxy servers seem to be misconfigured more often than not. You should check if you can connect through curl.

rawdon-hume-confsued commented 7 years ago

hi,

i set "NODE_TLS_REJECT_UNAUTHORIZED=1" within .npmrc and via the command line as an admin. I believe yes it dose decrypts the traffic, then re-encrypts it again using an internal cert/key before sending it on, i dont have to use the --cafile option but not using it seems to not work either. I was following http://stackoverflow.com/questions/13913941/how-to-fix-ssl-certificate-error-when-running-npm-on-windows but none of these seem to help

i use the curlt and that showed i can tunnel to the site , seems

PS C:\Users\xxx\Downloads\curl-7.50.3\I386> curl

cmdlet Invoke-WebRequest at command pipeline position 1
Supply values for the following parameters:
Uri: https://nodejs.org/

StatusCode        : 200
StatusDescription : OK
Content           : <!DOCTYPE html>
                    <html lang="en">
                    <head>
                      <meta charset="utf-8">
                      <title>Node.js</title>

                      <link rel="dns-prefetch" href="http://fonts.googleapis.com">
                      <link rel="dns-prefetch" href="http://fonts....
RawContent        : HTTP/1.1 200 OK
                    CF-Cache-Status: HIT
                    CF-RAY: 2ed809758f1f0cb9-LHR
                    Age: 0
                    Content-Length: 8602
                    Cache-Control: public, max-age=14400
                    Content-Type: text/html
                    Date: Thu, 06 Oct 2016 09:20:21 GMT
                    E...
Forms             : {}
Headers           : {[CF-Cache-Status, HIT], [CF-RAY, 2ed809758f1f0cb9-LHR], [Age, 0], [Content-Length, 8602]...}
Images            : {@{innerHTML=; innerText=; outerHTML=<IMG alt=node.js src="/static/images/logo-header.png">;
                    outerText=; tagName=IMG; alt=node.js; src=/static/images/logo-header.png}, @{innerHTML=;
                    innerText=; outerHTML=<IMG src="/static/images/interactive/nodejs-interactive-logo-center.png">;
                    outerText=; tagName=IMG; src=/static/images/interactive/nodejs-interactive-logo-center.png},
                    @{innerHTML=; innerText=; outerHTML=<IMG alt="Node.js Interactive North America, Austin, Texas,
                    November 29 - Dec 2, 2016"
                    src="/static/images/interactive/nodejs-interactive-hero-banner-right-na.png">; outerText=;
                    tagName=IMG; alt=Node.js Interactive North America, Austin, Texas, November 29 - Dec 2, 2016;
                    src=/static/images/interactive/nodejs-interactive-hero-banner-right-na.png}, @{innerHTML=;
                    innerText=; outerHTML=<IMG alt="Linux Foundation Collaborative Projects"
                    src="/static/images/lfcp.png">; outerText=; tagName=IMG; alt=Linux Foundation Collaborative
                    Projects; src=/static/images/lfcp.png}}
InputFields       : {}
Links             : {@{innerHTML=<IMG alt=node.js src="/static/images/logo-header.png"> ; innerText= ; outerHTML=<A
                    id=logo href="/en"><IMG alt=node.js src="/static/images/logo-header.png"> </A>; outerText= ;
                    tagName=A; id=logo; href=/en}, @{innerHTML=Home; innerText=Home; outerHTML=<A
                    href="/en/">Home</A>; outerText=Home; tagName=A; href=/en/}, @{innerHTML=About; innerText=About;
                    outerHTML=<A href="/en/about/">About</A>; outerText=About; tagName=A; href=/en/about/},
                    @{innerHTML=Downloads; innerText=Downloads; outerHTML=<A href="/en/download/">Downloads</A>;
                    outerText=Downloads; tagName=A; href=/en/download/}...}
ParsedHtml        : mshtml.HTMLDocumentClass
RawContentLength  : 8602
rawdon-hume-confsued commented 7 years ago

whats annoying is if i copy the .node-gpy folder from a server that had it complied before the whole thing works

PS c:\Sass\ContentSite> npm install
npm WARN example-project@0.1.0 No description
npm WARN example-project@0.1.0 No repository field.
npm WARN example-project@0.1.0 No license field.
PS c:\Sass\ContentSite> npm install
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN prefer global coffee-script@1.10.0 should be installed with -g
npm WARN prefer global node-gyp@3.4.0 should be installed with -g

> node-sass@3.10.1 install c:\Sass\node_modules\node-sass
> node scripts/install.js

Start downloading binary at https://github.com/sass/node-sass/releases/download/v3.10.1/win32-x64-48_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.10.1/win32-x64-48_binding.node":

write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:794:

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080

> node-sass@3.10.1 postinstall c:\Sass\node_modules\node-sass
> node scripts/build.js

Building: C:\Program Files\nodejs\node.exe c:\Sass\node_modules\node-gyp\bin\node-gyp.js r
ebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'c:\\Sass\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using node-gyp@3.4.0
gyp info using node@6.7.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "C:\Python27\python.exe" in the PATH
gyp verb `which` succeeded C:\Python27\python.exe C:\Python27\python.exe
gyp verb check python version `C:\Python27\python.exe -c "import platform; print(platform.python_version());"` returned:
 "2.7.11\r\n"
gyp verb get node dir no --target version specified, falling back to host node version: 6.7.0
gyp verb command install [ '6.7.0' ]
gyp verb install input version string "6.7.0"
gyp verb install installing version: 6.7.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 6.7.0
gyp verb build dir attempting to create "build" dir: c:\Sass\node_modules\node-sass\build
gyp verb build dir "build" dir needed to be created? c:\Sass\node_modules\node-sass\build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: c:\Sass\node_modules\node-sass\build\c
onfig.gypi
gyp verb config.gypi checking for gypi file: c:\Sass\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: c:\Sass\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'c:\\Sass\\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=2015',
gyp info spawn args   '-I',
gyp info spawn args   'c:\\Sass\\node_modules\\node-sass\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'c:\\Sass\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\xxx\\.node-gyp\\6.7.0\\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\\xxx\\.node-gyp\\6.7.0',
gyp info spawn args   '-Dnode_gyp_dir=c:\\Sass\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=c:\\Sass\\node_modules\\node-sass',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'c:\\Sass\\node_modules\\node-sass\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\xxx\.node-gyp\6.7.0
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp verb "Release" dir needed to be created? null
gyp verb copying "node.lib" for x64 C:\Users\xxx\.node-gyp\6.7.0\Release\node.lib
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 05/10/2016 22:13:00.
Project "c:\Sass\node_modules\node-sass\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|x64".
The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Com
mon.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Com
mon.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Com
mon.targets\ImportAfter\Xamarin.Common.targets (41,38)" does not exist in the project, and will be ignored.
The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common
.targets\ImportAfter\Xamarin.Common.targets (41,71)" does not exist in the project, and will be ignored.
Project "c:\Sass\node_modules\node-sass\build\binding.sln" (1) is building "c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj.metaproj" (2) on node 1 (default targets).
Project "c:\Sass\node_modules\node-sass\build\binding.vcxproj.metaproj" (2) is building "
c:\Sass\node_modules\node-sass\build\src\libsass.vcxproj" (3) on node 1 (default targets)
.
PrepareForBuild:
  Creating directory "Release\obj\libsass\".
  Creating directory "c:\Sass\node_modules\node-sass\build\Release\".
  Creating directory "Release\obj\libsass\libsass.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\libsass\libsass.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\xxx\.node-gyp\6.7.0\include\
  node" /I"C:\Users\xxx\.node-gyp\6.7.0\src" /I"C:\Users\xxx\.node-gyp\6.7.0\deps\uv\include" /I"C:\Users\xxx\.no
  de-gyp\6.7.0\deps\v8\include" /I..\..\src\libsass\include /Zi /nologo /W3 /WX- /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_M
  ODULE_NAME=libsass /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_
  DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D "LIBSASS_VERSION=\"3.3.6\"" /GF /Gm- /MT /GS /Gy /fp:p
  recise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\libsass\\" /Fd"Release\obj\libsass\libsass.pdb" /Gd /
  TP /wd4351 /wd4355 /wd4800 /wd4251 /errorReport:queue /GR /EHsc /MP ..\..\src\libsass\src\ast.cpp ..\..\src\libsass\s
  rc\base64vlq.cpp ..\..\src\libsass\src\bind.cpp ..\..\src\libsass\src\color_maps.cpp ..\..\src\libsass\src\constants.
  cpp ..\..\src\libsass\src\context.cpp ..\..\src\libsass\src\cssize.cpp ..\..\src\libsass\src\emitter.cpp ..\..\src\li
  bsass\src\environment.cpp ..\..\src\libsass\src\error_handling.cpp ..\..\src\libsass\src\eval.cpp ..\..\src\libsass\s
  rc\expand.cpp ..\..\src\libsass\src\extend.cpp ..\..\src\libsass\src\file.cpp ..\..\src\libsass\src\functions.cpp ..\
  ..\src\libsass\src\inspect.cpp ..\..\src\libsass\src\json.cpp ..\..\src\libsass\src\lexer.cpp ..\..\src\libsass\src\l
  istize.cpp ..\..\src\libsass\src\memory_manager.cpp ..\..\src\libsass\src\node.cpp ..\..\src\libsass\src\output.cpp .
  .\..\src\libsass\src\parser.cpp ..\..\src\libsass\src\plugins.cpp ..\..\src\libsass\src\position.cpp ..\..\src\libsas
  s\src\prelexer.cpp ..\..\src\libsass\src\remove_placeholders.cpp ..\..\src\libsass\src\sass.cpp ..\..\src\libsass\src
  \sass2scss.cpp ..\..\src\libsass\src\sass_context.cpp ..\..\src\libsass\src\sass_functions.cpp ..\..\src\libsass\src\
  sass_util.cpp ..\..\src\libsass\src\sass_values.cpp ..\..\src\libsass\src\source_map.cpp ..\..\src\libsass\src\to_c.c
  pp ..\..\src\libsass\src\to_value.cpp ..\..\src\libsass\src\units.cpp ..\..\src\libsass\src\utf8_string.cpp ..\..\src
  \libsass\src\util.cpp ..\..\src\libsass\src\values.cpp
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
  ast.cpp
  base64vlq.cpp
  bind.cpp
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
  color_maps.cpp
  constants.cpp
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
  context.cpp
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
  cssize.cpp
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
  emitter.cpp
  environment.cpp
  error_handling.cpp
  eval.cpp
..\..\src\libsass\src\bind.cpp(175): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of
 data [c:\Sass\node_modules\node-sass\build\src\libsass.vcxproj]
  expand.cpp
  extend.cpp
  file.cpp
  functions.cpp
  inspect.cpp
  json.cpp
..\..\src\libsass\src\json.cpp(26): warning C4005: '_CRT_NONSTDC_NO_DEPRECATE': macro redefinition [c:\Sass\\node_modules\node-sass\build\src\libsass.vcxproj]
  ..\..\src\libsass\src\json.cpp(26): note: command-line arguments:  see previous definition of '_CRT_NONSTDC_NO_DEPREC
  ATE'
  lexer.cpp
  listize.cpp
  memory_manager.cpp
  node.cpp
  output.cpp
  parser.cpp
  plugins.cpp
  position.cpp
  prelexer.cpp
  remove_placeholders.cpp
  sass.cpp
  sass2scss.cpp
..\..\src\libsass\src\sass2scss.cpp(9): warning C4005: '_CRT_NONSTDC_NO_DEPRECATE': macro redefinition [c:\Sass\ContentSite\node_modules\node-sass\build\src\libsass.vcxproj]
  ..\..\src\libsass\src\sass2scss.cpp(9): note: command-line arguments:  see previous definition of '_CRT_NONSTDC_NO_DE
  PRECATE'
  sass_context.cpp
  sass_functions.cpp
  sass_util.cpp
  sass_values.cpp
  source_map.cpp
  to_c.cpp
  to_value.cpp
  units.cpp
  utf8_string.cpp
  util.cpp
  values.cpp
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\xxx\.node-gyp\6.7.0\include\
  node" /I"C:\Users\xxx\.node-gyp\6.7.0\src" /I"C:\Users\xxx\.node-gyp\6.7.0\deps\uv\include" /I"C:\Users\xxx\.no
  de-gyp\6.7.0\deps\v8\include" /I..\..\src\libsass\include /Zi /nologo /W3 /WX- /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_M
  ODULE_NAME=libsass /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_
  DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D "LIBSASS_VERSION=\"3.3.6\"" /GF /Gm- /MT /GS /Gy /fp:p
  recise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\libsass\\" /Fd"Release\obj\libsass\libsass.pdb" /Gd /
  TC /wd4351 /wd4355 /wd4800 /wd4251 /errorReport:queue /GR /EHsc /MP ..\..\src\libsass\src\cencode.c
cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\node-
sass\build\src\libsass.vcxproj]
  cencode.c
Lib:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\Lib.exe /OUT:"c:\Sass\
  node_modules\node-sass\build\Release\libsass.lib" /NOLOGO /MACHINE:X64 /LTCG Release\obj\libsass\ast.obj
  Release\obj\libsass\base64vlq.obj
  Release\obj\libsass\bind.obj
  Release\obj\libsass\cencode.obj
  Release\obj\libsass\color_maps.obj
  Release\obj\libsass\constants.obj
  Release\obj\libsass\context.obj
  Release\obj\libsass\cssize.obj
  Release\obj\libsass\emitter.obj
  Release\obj\libsass\environment.obj
  Release\obj\libsass\error_handling.obj
  Release\obj\libsass\eval.obj
  Release\obj\libsass\expand.obj
  Release\obj\libsass\extend.obj
  Release\obj\libsass\file.obj
  Release\obj\libsass\functions.obj
  Release\obj\libsass\inspect.obj
  Release\obj\libsass\json.obj
  Release\obj\libsass\lexer.obj
  Release\obj\libsass\listize.obj
  Release\obj\libsass\memory_manager.obj
  Release\obj\libsass\node.obj
  Release\obj\libsass\output.obj
  Release\obj\libsass\parser.obj
  Release\obj\libsass\plugins.obj
  Release\obj\libsass\position.obj
  Release\obj\libsass\prelexer.obj
  Release\obj\libsass\remove_placeholders.obj
  Release\obj\libsass\sass.obj
  Release\obj\libsass\sass2scss.obj
  Release\obj\libsass\sass_context.obj
  Release\obj\libsass\sass_functions.obj
  Release\obj\libsass\sass_util.obj
  Release\obj\libsass\sass_values.obj
  Release\obj\libsass\source_map.obj
  Release\obj\libsass\to_c.obj
  Release\obj\libsass\to_value.obj
  Release\obj\libsass\units.obj
  Release\obj\libsass\utf8_string.obj
  Release\obj\libsass\util.obj
  Release\obj\libsass\values.obj
  libsass.vcxproj -> c:\Sass\node_modules\node-sass\build\Release\\libsass.lib
FinalizeBuildStatus:
  Deleting file "Release\obj\libsass\libsass.tlog\unsuccessfulbuild".
  Touching "Release\obj\libsass\libsass.tlog\libsass.lastbuildstate".
Done Building Project "c:\Sass\node_modules\node-sass\build\src\libsass.vcxproj" (default
 targets).

The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Com
mon.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Com
mon.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Com
mon.targets\ImportAfter\Xamarin.Common.targets (41,38)" does not exist in the project, and will be ignored.
The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common
.targets\ImportAfter\Xamarin.Common.targets (41,71)" does not exist in the project, and will be ignored.
Project "c:\Sass\node_modules\node-sass\build\binding.vcxproj.metaproj" (2) is building "
c:\Sass\node_modules\node-sass\build\binding.vcxproj" (4) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Release\obj\binding\".
  Creating directory "Release\obj\binding\binding.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\binding\binding.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\xxx\.node-gyp\6.7.0\include\
  node" /I"C:\Users\xxx\.node-gyp\6.7.0\src" /I"C:\Users\xxx\.node-gyp\6.7.0\deps\uv\include" /I"C:\Users\xxx\.no
  de-gyp\6.7.0\deps\v8\include" /I..\..\nan /I..\src\libsass\include /Zi /nologo /W3 /WX- /Ox /Ob2 /Oi /Ot /Oy /GL /D N
  ODE_GYP_MODULE_NAME=binding /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_S
  ECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D BUILDING_NODE_EXTENSION /D _WINDLL /GF /Gm- /
  MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\binding\\" /Fd"Release\obj\binding\vc
  140.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /errorReport:queue /Zc:threadSafeInit- /MP ..\src\binding.cpp ..\src
  \create_string.cpp ..\src\custom_function_bridge.cpp ..\src\custom_importer_bridge.cpp ..\src\sass_context_wrapper.cp
  p ..\src\sass_types\boolean.cpp ..\src\sass_types\color.cpp ..\src\sass_types\error.cpp ..\src\sass_types\factory.cpp
   ..\src\sass_types\list.cpp ..\src\sass_types\map.cpp ..\src\sass_types\null.cpp ..\src\sass_types\number.cpp ..\src\
  sass_types\string.cpp "c:\Sass\node_modules\node-gyp\src\win_delay_load_hook.cc"
  binding.cpp
  create_string.cpp
  custom_function_bridge.cpp
  custom_importer_bridge.cpp
  sass_context_wrapper.cpp
  boolean.cpp
  color.cpp
  error.cpp
..\src\binding.cpp(28): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of dat
a [c:\Sass\node_modules\node-sass\build\binding.vcxproj]
..\src\binding.cpp(140): warning C4244: 'argument': conversion from 'std::size_t' to 'double', possible loss of data [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
c:\Sass\node_modules\node-sass\src\callback_bridge.h(162): warning C4267: 'argument': con
version from 'size_t' to 'int', possible loss of data (compiling source file ..\src\custom_function_bridge.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(141): note: while compiling class
  template member function 'void CallbackBridge<Sass_Value *,void *>::dispatched_async_uv_callback(uv_async_t *)' (comp
  iling source file ..\src\custom_function_bridge.cpp)
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(68): note: see reference to functi
  on template instantiation 'void CallbackBridge<Sass_Value *,void *>::dispatched_async_uv_callback(uv_async_t *)' bein
  g compiled (compiling source file ..\src\custom_function_bridge.cpp)
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(57): note: while compiling class t
  emplate member function 'CallbackBridge<Sass_Value *,void *>::CallbackBridge(v8::Local<v8::Function>,bool)' (compilin
  g source file ..\src\custom_function_bridge.cpp)
  c:\Sass\node_modules\node-sass\src\custom_function_bridge.h(11): note: see reference to
   function template instantiation 'CallbackBridge<Sass_Value *,void *>::CallbackBridge(v8::Local<v8::Function>,bool)'
  being compiled (compiling source file ..\src\custom_function_bridge.cpp)
  c:\Sass\node_modules\node-sass\src\custom_function_bridge.h(9): note: see reference to
  class template instantiation 'CallbackBridge<Sass_Value *,void *>' being compiled (compiling source file ..\src\custo
  m_function_bridge.cpp)
c:\Sass\node_modules\node-sass\src\callback_bridge.h(110): warning C4267: 'argument': con
version from 'size_t' to 'int', possible loss of data (compiling source file ..\src\binding.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(89): note: while compiling class t
  emplate member function 'Sass_Value *CallbackBridge<Sass_Value *,void *>::operator ()(std::vector<void *,std::allocat
  or<_Ty>>)'
          with
          [
              _Ty=void *
          ] (compiling source file ..\src\binding.cpp)
  ..\src\binding.cpp(32): note: see reference to function template instantiation 'Sass_Value *CallbackBridge<Sass_Value
   *,void *>::operator ()(std::vector<void *,std::allocator<_Ty>>)' being compiled
          with
          [
              _Ty=void *
          ]
  c:\Sass\node_modules\node-sass\src\custom_function_bridge.h(9): note: see reference to
  class template instantiation 'CallbackBridge<Sass_Value *,void *>' being compiled (compiling source file ..\src\bindi
  ng.cpp)
c:\Sass\node_modules\node-sass\src\callback_bridge.h(162): warning C4267: 'argument': con
version from 'size_t' to 'int', possible loss of data (compiling source file ..\src\custom_importer_bridge.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(141): note: while compiling class
  template member function 'void CallbackBridge<SassImportList,void *>::dispatched_async_uv_callback(uv_async_t *)' (co
  mpiling source file ..\src\custom_importer_bridge.cpp)
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(68): note: see reference to functi
  on template instantiation 'void CallbackBridge<SassImportList,void *>::dispatched_async_uv_callback(uv_async_t *)' be
  ing compiled (compiling source file ..\src\custom_importer_bridge.cpp)
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(57): note: while compiling class t
  emplate member function 'CallbackBridge<SassImportList,void *>::CallbackBridge(v8::Local<v8::Function>,bool)' (compil
  ing source file ..\src\custom_importer_bridge.cpp)
  c:\Sass\node_modules\node-sass\src\custom_importer_bridge.h(13): note: see reference to
   function template instantiation 'CallbackBridge<SassImportList,void *>::CallbackBridge(v8::Local<v8::Function>,bool)
  ' being compiled (compiling source file ..\src\custom_importer_bridge.cpp)
  c:\Sass\node_modules\node-sass\src\custom_importer_bridge.h(11): note: see reference to
   class template instantiation 'CallbackBridge<SassImportList,void *>' being compiled (compiling source file ..\src\cu
  stom_importer_bridge.cpp)
  factory.cpp
c:\Sass\node_modules\node-sass\src\callback_bridge.h(162): warning C4267: 'argument': con
version from 'size_t' to 'int', possible loss of data (compiling source file ..\src\sass_context_wrapper.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(141): note: while compiling class
  template member function 'void CallbackBridge<Sass_Value *,void *>::dispatched_async_uv_callback(uv_async_t *)' (comp
  iling source file ..\src\sass_context_wrapper.cpp)
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(68): note: see reference to functi
  on template instantiation 'void CallbackBridge<Sass_Value *,void *>::dispatched_async_uv_callback(uv_async_t *)' bein
  g compiled (compiling source file ..\src\sass_context_wrapper.cpp)
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(57): note: while compiling class t
  emplate member function 'CallbackBridge<Sass_Value *,void *>::CallbackBridge(v8::Local<v8::Function>,bool)' (compilin
  g source file ..\src\sass_context_wrapper.cpp)
  c:\Sass\node_modules\node-sass\src\custom_function_bridge.h(11): note: see reference to
   function template instantiation 'CallbackBridge<Sass_Value *,void *>::CallbackBridge(v8::Local<v8::Function>,bool)'
  being compiled (compiling source file ..\src\sass_context_wrapper.cpp)
  c:\Sass\node_modules\node-sass\src\custom_function_bridge.h(9): note: see reference to
  class template instantiation 'CallbackBridge<Sass_Value *,void *>' being compiled (compiling source file ..\src\sass_
  context_wrapper.cpp)
c:\Sass\node_modules\node-sass\src\callback_bridge.h(162): warning C4267: 'argument': con
version from 'size_t' to 'int', possible loss of data (compiling source file ..\src\binding.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(141): note: while compiling class
  template member function 'void CallbackBridge<Sass_Value *,void *>::dispatched_async_uv_callback(uv_async_t *)' (comp
  iling source file ..\src\binding.cpp)
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(68): note: see reference to functi
  on template instantiation 'void CallbackBridge<Sass_Value *,void *>::dispatched_async_uv_callback(uv_async_t *)' bein
  g compiled (compiling source file ..\src\binding.cpp)
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(57): note: while compiling class t
  emplate member function 'CallbackBridge<Sass_Value *,void *>::CallbackBridge(v8::Local<v8::Function>,bool)' (compilin
  g source file ..\src\binding.cpp)
  c:\Sass\node_modules\node-sass\src\custom_function_bridge.h(11): note: see reference to
   function template instantiation 'CallbackBridge<Sass_Value *,void *>::CallbackBridge(v8::Local<v8::Function>,bool)'
  being compiled (compiling source file ..\src\binding.cpp)
  list.cpp
  map.cpp
  null.cpp
  number.cpp
  string.cpp
  win_delay_load_hook.cc
c:\Sass\node_modules\nan\nan_new.h(208): warning C4244: 'argument': conversion from 'std:
:size_t' to 'double', possible loss of data (compiling source file ..\src\sass_types\list.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  ..\src\sass_types\list.cpp(98): note: see reference to function template instantiation 'v8::Local<v8::Number> Nan::Ne
  w<v8::Number,std::size_t>(std::A0)' being compiled
          with
          [
              A0=std::size_t
          ]
c:\Sass\node_modules\nan\nan_new.h(208): warning C4244: 'argument': conversion from 'std:
:size_t' to 'double', possible loss of data (compiling source file ..\src\sass_types\map.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  ..\src\sass_types\map.cpp(115): note: see reference to function template instantiation 'v8::Local<v8::Number> Nan::Ne
  w<v8::Number,std::size_t>(std::A0)' being compiled
          with
          [
              A0=std::size_t
          ]
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe /ERRORREPORT:QUEUE /OUT:"c:\Sass\ContentSite\node_modules\node-sass\build\Release\binding.node" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.li
  b gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.li
  b "C:\Users\xxx\.node-gyp\6.7.0\Release\node.lib" Delayimp.lib /DELAYLOAD:iojs.exe /DELAYLOAD:node.exe /MANIFEST /M
  ANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"c:\Sass\no
  de_modules\node-sass\build\Release\binding.pdb" /MAP /MAPINFO:EXPORTS /OPT:REF /OPT:ICF /LTCG /TLBID:1 /RELEASE /DYNA
  MICBASE /NXCOMPAT /MACHINE:X64 /ignore:4199 /DLL Release\obj\binding\binding.obj
  Release\obj\binding\create_string.obj
  Release\obj\binding\custom_function_bridge.obj
  Release\obj\binding\custom_importer_bridge.obj
  Release\obj\binding\sass_context_wrapper.obj
  Release\obj\binding\boolean.obj
  Release\obj\binding\color.obj
  Release\obj\binding\error.obj
  Release\obj\binding\factory.obj
  Release\obj\binding\list.obj
  Release\obj\binding\map.obj
  Release\obj\binding\null.obj
  Release\obj\binding\number.obj
  Release\obj\binding\string.obj
  Release\obj\binding\win_delay_load_hook.obj
  "c:\Sass\node_modules\node-sass\build\Release\libsass.lib"
     Creating library c:\Sass\node_modules\node-sass\build\Release\binding.lib and object
   c:\Sass\node_modules\node-sass\build\Release\binding.exp
  Generating code
  Finished generating code
  binding.vcxproj -> c:\Sass\node_modules\node-sass\build\Release\\binding.node
  binding.vcxproj -> c:\Sass\node_modules\node-sass\build\Release\binding.pdb (Full PDB)
FinalizeBuildStatus:
  Deleting file "Release\obj\binding\binding.tlog\unsuccessfulbuild".
  Touching "Release\obj\binding\binding.tlog\binding.lastbuildstate".
Done Building Project "c:\Sass\node_modules\node-sass\build\binding.vcxproj" (default tar
gets).

Done Building Project "c:\Sass\node_modules\node-sass\build\binding.vcxproj.metaproj" (de
fault targets).

Done Building Project "c:\Sass\node_modules\node-sass\build\binding.sln" (default targets
).

Build succeeded.

"c:\Sass\node_modules\node-sass\build\binding.sln" (default target) (1) ->
"c:\Sass\node_modules\node-sass\build\binding.vcxproj.metaproj" (default target) (2) ->
"c:\Sass\node_modules\node-sass\build\src\libsass.vcxproj" (default target) (3) ->
(ClCompile target) ->
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]
  ..\..\src\libsass\src\bind.cpp(175): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss
of data [c:\Sass\node_modules\node-sass\build\src\libsass.vcxproj]
  ..\..\src\libsass\src\json.cpp(26): warning C4005: '_CRT_NONSTDC_NO_DEPRECATE': macro redefinition [c:\Sass\ContentSite\node_modules\node-sass\build\src\libsass.vcxproj]
  ..\..\src\libsass\src\sass2scss.cpp(9): warning C4005: '_CRT_NONSTDC_NO_DEPRECATE': macro redefinition [c:\Sass\ContentSite\node_modules\node-sass\build\src\libsass.vcxproj]
  cl : Command line warning D9025: overriding '/GR-' with '/GR' [c:\Sass\node_modules\nod
e-sass\build\src\libsass.vcxproj]

"c:\Sass\node_modules\node-sass\build\binding.sln" (default target) (1) ->
"c:\Sass\node_modules\node-sass\build\binding.vcxproj.metaproj" (default target) (2) ->
"c:\Sass\node_modules\node-sass\build\binding.vcxproj" (default target) (4) ->
  ..\src\binding.cpp(28): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of d
ata [c:\Sass\node_modules\node-sass\build\binding.vcxproj]
  ..\src\binding.cpp(140): warning C4244: 'argument': conversion from 'std::size_t' to 'double', possible loss of data
[c:\Sass\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(162): warning C4267: 'argument': c
onversion from 'size_t' to 'int', possible loss of data (compiling source file ..\src\custom_function_bridge.cpp) [c:\Sass\\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(110): warning C4267: 'argument': c
onversion from 'size_t' to 'int', possible loss of data (compiling source file ..\src\binding.cpp) [c:\Sass\\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(162): warning C4267: 'argument': c
onversion from 'size_t' to 'int', possible loss of data (compiling source file ..\src\custom_importer_bridge.cpp) [c:\Sass\\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(162): warning C4267: 'argument': c
onversion from 'size_t' to 'int', possible loss of data (compiling source file ..\src\sass_context_wrapper.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\node-sass\src\callback_bridge.h(162): warning C4267: 'argument': c
onversion from 'size_t' to 'int', possible loss of data (compiling source file ..\src\binding.cpp) [c:\Sass\\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\nan\nan_new.h(208): warning C4244: 'argument': conversion from 'st
d::size_t' to 'double', possible loss of data (compiling source file ..\src\sass_types\list.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]
  c:\Sass\node_modules\nan\nan_new.h(208): warning C4244: 'argument': conversion from 'st
d::size_t' to 'double', possible loss of data (compiling source file ..\src\sass_types\map.cpp) [c:\Sass\ContentSite\node_modules\node-sass\build\binding.vcxproj]

    22 Warning(s)
    0 Error(s)

Time Elapsed 00:00:28.96
gyp info ok
Installed in "c:\Sass\node_modules\node-sass\vendor\win32-x64-48\binding.node"
example-project@0.1.0 c:\Sass\ContentSite
+-- grunt@1.0.1
| +-- coffee-script@1.10.0
| +-- dateformat@1.0.12
| | +-- get-stdin@4.0.1
| | `-- meow@3.7.0
| |   +-- camelcase-keys@2.1.0
| |   | `-- camelcase@2.1.1
| |   +-- decamelize@1.2.0
| |   +-- loud-rejection@1.6.0
| |   | +-- currently-unhandled@0.4.1
| |   | | `-- array-find-index@1.0.2
| |   | `-- signal-exit@3.0.1
| |   +-- map-obj@1.0.1
| |   +-- minimist@1.2.0
| |   +-- normalize-package-data@2.3.5
| |   | +-- hosted-git-info@2.1.5
| |   | +-- is-builtin-module@1.0.0
| |   | | `-- builtin-modules@1.1.1
| |   | `-- validate-npm-package-license@3.0.1
| |   |   +-- spdx-correct@1.0.2
| |   |   | `-- spdx-license-ids@1.2.2
| |   |   `-- spdx-expression-parse@1.0.3
| |   +-- read-pkg-up@1.0.1
| |   | +-- find-up@1.1.2
| |   | | `-- path-exists@2.1.0
| |   | `-- read-pkg@1.1.0
| |   |   +-- load-json-file@1.1.0
| |   |   | +-- parse-json@2.2.0
| |   |   | | `-- error-ex@1.3.0
| |   |   | |   `-- is-arrayish@0.2.1
| |   |   | +-- pify@2.3.0
| |   |   | `-- strip-bom@2.0.0
| |   |   |   `-- is-utf8@0.2.1
| |   |   `-- path-type@1.1.0
| |   +-- redent@1.0.0
| |   | +-- indent-string@2.1.0
| |   | | `-- repeating@2.0.1
| |   | |   `-- is-finite@1.0.2
| |   | `-- strip-indent@1.0.1
| |   `-- trim-newlines@1.0.0
| +-- eventemitter2@0.4.14
| +-- exit@0.1.2
| +-- findup-sync@0.3.0
| | `-- glob@5.0.15
| +-- glob@7.0.6
| | +-- fs.realpath@1.0.0
| | +-- inflight@1.0.5
| | | `-- wrappy@1.0.2
| | +-- inherits@2.0.3
| | `-- once@1.4.0
| +-- grunt-cli@1.2.0
| | `-- resolve@1.1.7
| +-- grunt-known-options@1.1.0
| +-- grunt-legacy-log@1.0.0
| | +-- colors@1.1.2
| | +-- grunt-legacy-log-utils@1.0.0
| | | `-- lodash@4.3.0
| | +-- hooker@0.2.3
| | `-- underscore.string@3.2.3
| +-- grunt-legacy-util@1.0.0
| | +-- getobject@0.1.0
| | +-- lodash@4.3.0
| | `-- which@1.2.11
| |   `-- isexe@1.1.2
| +-- iconv-lite@0.4.13
| +-- js-yaml@3.5.5
| | +-- argparse@1.0.9
| | | `-- sprintf-js@1.0.3
| | `-- esprima@2.7.3
| +-- minimatch@3.0.3
| | `-- brace-expansion@1.1.6
| |   +-- balanced-match@0.4.2
| |   `-- concat-map@0.0.1
| +-- nopt@3.0.6
| | `-- abbrev@1.0.9
| +-- path-is-absolute@1.0.1
| `-- rimraf@2.2.8
+-- grunt-chmod@1.1.1
| `-- shelljs@0.5.3
+-- grunt-contrib-copy@1.0.0
| +-- chalk@1.1.3
| | +-- ansi-styles@2.2.1
| | +-- escape-string-regexp@1.0.5
| | +-- has-ansi@2.0.0
| | | `-- ansi-regex@2.0.0
| | +-- strip-ansi@3.0.1
| | `-- supports-color@2.0.0
| `-- file-sync-cmp@0.1.1
+-- grunt-contrib-cssmin@1.0.2
| +-- clean-css@3.4.20
| | +-- commander@2.8.1
| | | `-- graceful-readlink@1.0.1
| | `-- source-map@0.4.4
| |   `-- amdefine@1.0.0
| `-- maxmin@1.1.0
|   +-- figures@1.7.0
|   +-- gzip-size@1.0.0
|   | +-- browserify-zlib@0.1.4
|   | | `-- pako@0.2.9
|   | `-- concat-stream@1.5.2
|   |   +-- readable-stream@2.0.6
|   |   | +-- core-util-is@1.0.2
|   |   | +-- isarray@1.0.0
|   |   | +-- process-nextick-args@1.0.7
|   |   | +-- string_decoder@0.10.31
|   |   | `-- util-deprecate@1.0.2
|   |   `-- typedarray@0.0.6
|   `-- pretty-bytes@1.0.4
+-- grunt-contrib-jade@1.0.0
| `-- jade@1.11.0
|   +-- character-parser@1.2.1
|   +-- commander@2.6.0
|   +-- constantinople@3.0.2
|   | `-- acorn@2.7.0
|   +-- jstransformer@0.0.2
|   | +-- is-promise@2.1.0
|   | `-- promise@6.1.0
|   |   `-- asap@1.0.0
|   +-- mkdirp@0.5.1
|   | `-- minimist@0.0.8
|   +-- transformers@2.1.0
|   | +-- css@1.0.8
|   | | +-- css-parse@1.0.4
|   | | `-- css-stringify@1.0.5
|   | +-- promise@2.0.0
|   | | `-- is-promise@1.0.1
|   | `-- uglify-js@2.2.5
|   |   +-- optimist@0.3.7
|   |   | `-- wordwrap@0.0.3
|   |   `-- source-map@0.1.43
|   +-- uglify-js@2.7.3
|   | +-- async@0.2.10
|   | +-- source-map@0.5.6
|   | +-- uglify-to-browserify@1.0.2
|   | `-- yargs@3.10.0
|   |   +-- camelcase@1.2.1
|   |   +-- cliui@2.1.0
|   |   | +-- center-align@0.1.3
|   |   | | +-- align-text@0.1.4
|   |   | | | +-- kind-of@3.0.4
|   |   | | | | `-- is-buffer@1.1.4
|   |   | | | +-- longest@1.0.1
|   |   | | | `-- repeat-string@1.5.4
|   |   | | `-- lazy-cache@1.0.4
|   |   | +-- right-align@0.1.3
|   |   | `-- wordwrap@0.0.2
|   |   `-- window-size@0.1.0
|   +-- void-elements@2.0.1
|   `-- with@4.0.3
|     +-- acorn@1.2.2
|     `-- acorn-globals@1.0.9
+-- grunt-contrib-watch@1.0.0
| +-- async@1.5.2
| +-- gaze@1.1.2
| | `-- globule@1.0.0
| |   `-- lodash@4.9.0
| +-- lodash@3.10.1
| `-- tiny-lr@0.2.1
|   +-- body-parser@1.14.2
|   | +-- bytes@2.2.0
|   | +-- content-type@1.0.2
|   | +-- depd@1.1.0
|   | +-- http-errors@1.3.1
|   | | `-- statuses@1.3.0
|   | +-- on-finished@2.3.0
|   | | `-- ee-first@1.1.1
|   | +-- qs@5.2.0
|   | +-- raw-body@2.1.7
|   | | +-- bytes@2.4.0
|   | | `-- unpipe@1.0.0
|   | `-- type-is@1.6.13
|   |   `-- media-typer@0.3.0
|   +-- debug@2.2.0
|   | `-- ms@0.7.1
|   +-- faye-websocket@0.10.0
|   | `-- websocket-driver@0.6.5
|   |   `-- websocket-extensions@0.1.1
|   +-- livereload-js@2.2.2
|   +-- parseurl@1.3.1
|   `-- qs@5.1.0
`-- grunt-sass@1.2.1
  +-- each-async@1.1.1
  | +-- onetime@1.1.0
  | `-- set-immediate-shim@1.0.1
  +-- node-sass@3.10.1
  | +-- async-foreach@0.1.3
  | +-- cross-spawn@3.0.1
  | | `-- lru-cache@4.0.1
  | |   +-- pseudomap@1.0.2
  | |   `-- yallist@2.0.0
  | +-- in-publish@2.0.0
  | +-- lodash.assign@4.2.0
  | +-- lodash.clonedeep@4.5.0
  | +-- nan@2.4.0
  | +-- node-gyp@3.4.0
  | | +-- fstream@1.0.10
  | | +-- graceful-fs@4.1.9
  | | +-- npmlog@3.1.2
  | | +-- osenv@0.1.3
  | | | +-- os-homedir@1.0.2
  | | | `-- os-tmpdir@1.0.2
  | | +-- path-array@1.0.1
  | | | `-- array-index@1.0.0
  | | |   `-- es6-symbol@3.1.0
  | | |     +-- d@0.1.1
  | | |     `-- es5-ext@0.10.12
  | | |       `-- es6-iterator@2.0.0
  | | +-- semver@5.3.0
  | | `-- tar@2.2.1
  | |   `-- block-stream@0.0.9
  | +-- npmlog@4.0.0
  | | +-- are-we-there-yet@1.1.2
  | | | `-- delegates@1.0.0
  | | +-- console-control-strings@1.1.0
  | | +-- gauge@2.6.0
  | | | +-- aproba@1.0.4
  | | | +-- has-color@0.1.7
  | | | +-- has-unicode@2.0.1
  | | | +-- string-width@1.0.2
  | | | | +-- code-point-at@1.0.1
  | | | | | `-- number-is-nan@1.0.1
  | | | | `-- is-fullwidth-code-point@1.0.0
  | | | `-- wide-align@1.1.0
  | | `-- set-blocking@2.0.0
  | +-- request@2.75.0
  | | +-- aws-sign2@0.6.0
  | | +-- aws4@1.4.1
  | | +-- bl@1.1.2
  | | +-- caseless@0.11.0
  | | +-- combined-stream@1.0.5
  | | | `-- delayed-stream@1.0.0
  | | +-- extend@3.0.0
  | | +-- forever-agent@0.6.1
  | | +-- form-data@2.0.0
  | | | `-- asynckit@0.4.0
  | | +-- har-validator@2.0.6
  | | | +-- commander@2.9.0
  | | | +-- is-my-json-valid@2.15.0
  | | | | +-- generate-function@2.0.0
  | | | | +-- generate-object-property@1.2.0
  | | | | | `-- is-property@1.0.2
  | | | | +-- jsonpointer@4.0.0
  | | | | `-- xtend@4.0.1
  | | | `-- pinkie-promise@2.0.1
  | | |   `-- pinkie@2.0.4
  | | +-- hawk@3.1.3
  | | | +-- boom@2.10.1
  | | | +-- cryptiles@2.0.5
  | | | +-- hoek@2.16.3
  | | | `-- sntp@1.0.9
  | | +-- http-signature@1.1.1
  | | | +-- assert-plus@0.2.0
  | | | +-- jsprim@1.3.1
  | | | | +-- extsprintf@1.0.2
  | | | | +-- json-schema@0.2.3
  | | | | `-- verror@1.3.6
  | | | `-- sshpk@1.10.1
  | | |   +-- asn1@0.2.3
  | | |   +-- assert-plus@1.0.0
  | | |   +-- bcrypt-pbkdf@1.0.0
  | | |   +-- dashdash@1.14.0
  | | |   | `-- assert-plus@1.0.0
  | | |   +-- ecc-jsbn@0.1.1
  | | |   +-- getpass@0.1.6
  | | |   | `-- assert-plus@1.0.0
  | | |   +-- jodid25519@1.0.2
  | | |   +-- jsbn@0.1.0
  | | |   `-- tweetnacl@0.14.3
  | | +-- is-typedarray@1.0.0
  | | +-- isstream@0.1.2
  | | +-- json-stringify-safe@5.0.1
  | | +-- mime-types@2.1.12
  | | | `-- mime-db@1.24.0
  | | +-- node-uuid@1.4.7
  | | +-- oauth-sign@0.8.2
  | | +-- qs@6.2.1
  | | +-- stringstream@0.0.5
  | | +-- tough-cookie@2.3.1
  | | `-- tunnel-agent@0.4.3
  | `-- sass-graph@2.1.2
  |   +-- lodash@4.16.3
  |   `-- yargs@4.8.1
  |     +-- cliui@3.2.0
  |     | `-- wrap-ansi@2.0.0
  |     +-- get-caller-file@1.0.2
  |     +-- os-locale@1.4.0
  |     | `-- lcid@1.0.0
  |     |   `-- invert-kv@1.0.0
  |     +-- require-directory@2.1.1
  |     +-- require-main-filename@1.0.1
  |     +-- which-module@1.0.0
  |     +-- window-size@0.2.0
  |     +-- y18n@3.2.1
  |     `-- yargs-parser@2.4.1
  |       `-- camelcase@3.0.0
  `-- object-assign@4.1.0

npm WARN example-project@0.1.0 No description
npm WARN example-project@0.1.0 No repository field.
npm WARN example-project@0.1.0 No license field.
bnoordhuis commented 7 years ago

Ah, you're using powershell. It has a builtin 'curl' alias and presumably it's picking up your global proxy settings but I was referring to the real curl, i.e., https://curl.haxx.se/. I'm curious if curl.exe --cacert yourca.pem https://nodejs.org/ works.

rawdon-hume-confsued commented 7 years ago

i couldn't get the curl.exe to work via command line

C:\Program Files\cURL\bin>curl.exe --cacert test.pem --capath c:\ https://nodejs
.org/
curl: (77) error setting certificate verify locations:
  CAfile: test.pem
  CApath: c:\
C:\Program Files\cURL\bin>curl.exe --capath c:\test.pem https://nodejs.org/
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

so i thought i would use powershell to call install seeing as you said powershell is picking up the global proxy, and i got the following

> node-sass@3.10.1 install c:\Sass\\node_modules\node-sass
> node scripts/install.js
Start downloading binary at https://github.com/sass/node-sass/releases/download/v3.10.1/win32-x64-48_binding.node
Binary downloaded and installed at c:\Sass\\node_modules\node-sass\vendor\win32-x64-48\binding.node
> node-sass@3.10.1 postinstall c:\Sass\\node_modules\node-sass
> node scripts/build.js
"c:\Sass\\node_modules\node-sass\vendor\win32-x64-48\binding.node" exists. 
 testing binary.
Problem with the binary:
Error: %1 is not a valid Win32 application.
\\?\c:\Sass\\node_modules\node-sass\vendor\win32-x64-48\binding.node
Manual build incoming.
Building: C:\\Node\node.exe c:\Sass\\node_modules\node-gyp\bin\node-gyp.js rebuild
 --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
C:\\Node\npm.cmd : gyp info it worked if it ends with ok
At line:1 char:1
+ C:\\Node\npm.cmd install node-sass
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (gyp info it worked if it ends with ok:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
gyp
 verb 
cli [ 'C:\\Node\\node.exe',
gyp
 verb cli
   'C:\\Sass\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp
 verb
 cli   'rebuild',
gyp
verb
cli
   '--verbose',
gyp
verb
cli
   '--libsass_ext=',
gyp
verb cli   '--libsass_cflags=',
gyp
verb
cli   '--libsass_ldflags=',
gyp
verb
cli   '--libsass_library=' ]
gyp
info
using
 node-gyp@3.4.0
gyp
 info 
using
 node@6.7.0 | win32 | x64
gyp
verb
command
 rebuild []
gyp
 verb
command
 clean []
gyp
verb
clean
 removing "build" directory
gyp
verb
command
 configure []
gyp
verb
check python
 checking for Python executable "C:\\Python27\python.exe" in the PATH
gyp
verb
`which` succeeded
 C:\\Python27\python.exe C:\\Python27\python.exe
gyp
 ERR! configure error
gyp
ERR!
stack
 Error: Command failed: C:\\Python27\python.exe -c import platform; print(platform.python_version());
gyp ERR!
stack
gyp
ERR!
 stack
     at ChildProcess.exithandler (child_process.js:206:12)
gyp 
ERR!
stack
     at emitTwo (events.js:106:13)
gyp
ERR! 
stack
     at ChildProcess.emit (events.js:191:7)
gyp
ERR!
stack
     at maybeClose (internal/child_process.js:877:16)
gyp ERR!
 stack
     at Socket.<anonymous> (internal/child_process.js:334:11)
gyp
ERR!
 stack
     at emitOne (events.js:96:13)
gyp ERR!
stack
     at Socket.emit (events.js:188:7)
gyp
ERR! stack
     at Pipe._handle.close [as _onclose] (net.js:493:12)
gyp
 ERR! 
System
 Windows_NT 6.3.9600
gyp
 ERR! command
 "C:\\Node\\node.exe" 
"C:\\Sass\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" 
"--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp
 ERR! cwd c:\Sass\\node_modules\node-sass
gyp
ERR!
node -v
 v6.7.0
gyp
 ERR! node-gyp -v
 v3.4.0
gyp
 ERR! 
not ok
Build failed
npm
WARN
 example-project@0.1.0 No description
npm
WARN
 example-project@0.1.0 No repository field.
npm
WARN
 example-project@0.1.0 No license field.
npm
ERR!
 Windows_NT 6.3.9600
npm
ERR!
argv
 "C:\\Node\\node.exe" "C:\\Node\\node_modules\\npm\\bin\\npm-cli.js" 
"install" "node-sass"
npm
ERR!
node
 v6.7.0
npm
ERR!
npm 
 v3.10.3
npm
ERR!
code
 ELIFECYCLE
npm
ERR!
 node-sass@3.10.1 postinstall: `node scripts/build.js`
npm
ERR!
 Exit status 1
npm
ERR!
npm
ERR!
 Failed at the node-sass@3.10.1 postinstall script 'node scripts/build.js'.
npm
ERR!
 Make sure you have the latest version of node.js and npm installed.
npm
ERR!
 If you do, this is most likely a problem with the node-sass package,
npm
ERR!
 not with npm itself.
npm
ERR!
 Tell the author that this fails on your system:
npm
ERR!
     node scripts/build.js
npm
ERR!
 You can get information on how to open an issue for this project with:
npm
ERR!
     npm bugs node-sass
npm
ERR!
 Or if that isn't available, you can get their info via:
npm
ERR!
     npm owner ls node-sass
npm
ERR!
 There is likely additional logging output above.
npm
ERR!
 Please include the following file with any support request:
npm 
ERR!
     c:\Sass\\npm-debug.log

so looked at fixing the "Error: %1 is not a valid Win32 application". which still comes from node-gyp comes from "Building: C:\Node\node.exe C:\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library="

i tried all the suggestions on slack , seem i may have to just power shell the .node-gyp files to the user folder manually as thats the only way it seems to work as cant compile node-gpy manually

bnoordhuis commented 7 years ago

I see two issues:

  1. node-sass (not node-gyp) tries to download a precompiled binary from github that apparently doesn't match your architecture. Not a big deal because it falls back to building from source.
  2. Executing C:\\Python27\python.exe fails. If you have a working python executable, pass it to node-gyp with --python <executable>.
rawdon-hume-confsued commented 7 years ago

yer python is defined in my system environmental variables and set in .npmrc but i tried passing it in the install call but still fails with self signed certificate in certificate chain, node-sass uses node-gyp to compile the scss files, i think unless there is an option to tell node-gyp to pull from a local repository or tell node-sass to use the c++ compiler instead (which i had hoped setting the ms version would have done, but seems to still try and use node-gyp first before falling back on the c++ compiler) ; or if .node-gyp complied files were part of the node-gpy module and came as part of it when you required it and could run from the module location instead of the users folder....in any case im stuck with having to powershell the .node-gpy folder from a VM to a local pc

PS C:\Sass> C:\Dependencies\Node\npm.cmd install node-sass  --python  C:\\Python27\python.exe 
> node-sass@3.10.1 install C:\Sass\node_modules\node-sass
> node scripts/install.js
Start downloading binary at https://github.com/sass/node-sass/releases/download/v3.10.1/win32-x64-48_binding.node
Binary downloaded and installed at C:\Sass\node_modules\node-sass\vendor\win32-x64-48\binding.node
> node-sass@3.10.1 postinstall C:\Sass\node_modules\node-sass
> node scripts/build.js
"C:\Sass\node_modules\node-sass\vendor\win32-x64-48\binding.node" exists. 
 testing binary.
Problem with the binary:
Error: %1 is not a valid Win32 application.
\\?\C:\Sass\node_modules\node-sass\vendor\win32-x64-48\binding.node
Manual build incoming.
Building: C:\Dependencies\Node\node.exe C:\Sass\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose -
-libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
C:\Dependencies\Node\npm.cmd : gyp info it worked if it ends with ok
At line:1 char:1
+ C:\Dependencies\Node\npm.cmd install node-sass
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (gyp info it worked if it ends with ok:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
gyp
verb
cli
 [ 'C:\\Node\\node.exe',
gyp
 verb
cli
   'C:\\Sass\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp
verb 
cli
   'rebuild',
gyp
verb
cli   '--verbose',
gyp
verb
 cli   '--libsass_ext=',
gyp
verb
cli
   '--libsass_cflags=',
gyp
verb 
cli
   '--libsass_ldflags=',
gyp
verb
cli   '--libsass_library=' ]
gyp
 info using
 node-gyp@3.4.0
gyp
 info using node@6.7.0 | win32 | x64
gyp
 verb command
 rebuild []
gyp
 verb
command
 clean []
gyp
verb
clean
 removing "build" directory
gyp
 verb
command
 configure []
gyp
 verb 
check python
 checking for Python executable "C:\Python27\python.exe" in the PATH
gyp
 verb
`which` succeeded
 C:\\Python27\python.exe C:\\Python27\python.exe
gyp
 verb check python version
 `C:\\Python27\python.exe -c "import platform; print(platform.python_version());"` returned: "2.7.11\r\n"
gyp
verb
get node dir
 no --target version specified, falling back to host node version: 6.7.0
gyp
verb
command
 install [ '6.7.0' ]
gyp
 verb install input version string "6.7.0"
gyp
 verb 
install
 installing version: 6.7.0
gyp
verb
install
 --ensure was passed, so won't reinstall if already installed
gyp
verb
install
 version not already installed, continuing with install 6.7.0
gyp
verb
ensuring nodedir is created
 C:\Users\xxx\.node-gyp\6.7.0
gyp
verb
created nodedir
 C:\Users\xxx\.node-gyp\6.7.0
gyp
http
GET
 https://nodejs.org/download/release/v6.7.0/node-v6.7.0-headers.tar.gz
gyp
verb
download
 using proxy url: "http://websense-wcg..lan:8080/"
gyp
 WARN 
install
 got an error, rolling back install
gyp
verb
command
 remove [ '6.7.0' ]
gyp
 verb
remove
 using node-gyp dir: C:\Users\xxx\.node-gyp
gyp
 verb remove
 removing target version: 6.7.0
gyp
 verb 
remove
 removing development files for version: 6.7.0
gyp
ERR!
configure error 
gyp
 ERR! 
stack
 Error: self signed certificate in certificate chain
gyp 
ERR!
stack
     at Error (native)
gyp ERR!
stack
     at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
gyp 
ERR!
stack
     at emitNone (events.js:86:13)
gyp
ERR! 
stack
     at TLSSocket.emit (events.js:185:7)
gyp
ERR! 
stack
     at TLSSocket._finishInit (_tls_wrap.js:584:8)
gyp
ERR! stack
     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
gyp
 ERR!
System Windows_NT 6.3.9600
gyp
 ERR! 
command
 "C:\\Node\\node.exe" "C:\\Sass\\node_modules\\node-gyp\\bin\\node-gyp.js" 
"rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp
ERR!
cwd C:\Sass\node_modules\node-sass
gyp
 ERR!
node -v
 v6.7.0
gyp
 ERR! node-gyp -v
 v3.4.0
gyp
 ERR! not ok
Build failed
C:\\Sass
`-- d@0.1.1 
  `-- es5-ext@0.10.12 
    +-- es6-iterator@2.0.0 
    `-- es6-symbol@3.1.0 
npm
WARN
enoent
 ENOENT: no such file or directory, open 'C:\\Sass\package.json'
npm
WARN
 Sass No description
npm
WARN
 Sass No repository field.
npm
 WARN Sass No README data
npm
WARN
 Sass No license field.
npm
ERR!
 Windows_NT 6.3.9600
npm
ERR!
argv
 "C:\\Node\\node.exe" "C:\\Node\\node_modules\\npm\\bin\\npm-cli.js" 
"install" "node-sass"
npm
ERR!
node
 v6.7.0
npm
ERR!
npm 
 v3.10.3
npm
ERR!
code ELIFECYCLE
npm
ERR!
 node-sass@3.10.1 postinstall: `node scripts/build.js`
npm
ERR!
 Exit status 1
npm
ERR!
npm
ERR!
 Failed at the node-sass@3.10.1 postinstall script 'node scripts/build.js'.
npm
ERR!
 Make sure you have the latest version of node.js and npm installed.
npm
ERR!
 If you do, this is most likely a problem with the node-sass package,
npm
ERR!
 not with npm itself.
npm
ERR!
 Tell the author that this fails on your system:
npm
ERR!
     node scripts/build.js
npm
ERR!
 You can get information on how to open an issue for this project with:
npm
ERR!
     npm bugs node-sass
npm
ERR!
 Or if that isn't available, you can get their info via:
npm
ERR!
     npm owner ls node-sass
npm
ERR!
 There is likely additional logging output above.
npm
ERR!
 Please include the following file with any support request:
npm
ERR!
     C:\\Sass\npm-debug.log

you can see it find python and gets the version but still then falls over with the self signed certificate in certificate chain error

verb check python version
 `C:\\Python27\python.exe -c "import platform; print(platform.python_version());"` returned: "2.7.11\r\n"
gyp
rawdon-hume-confsued commented 7 years ago

ok i worked it out ,

my .npmrc file was uisng "ca=" but thats for when you want to set the cert file like so

ca="-----BEGIN CERTIFICATE-----\nXXXX\nXXXX\n-----END CERTIFICATE-----"

but to use a cert file then you need to set cafile

cafile=/path/to/cert.pem

see https://docs.npmjs.com/misc/config#cafile

it seems setting cafile via node-gyp didn't work but having it set in .npmrc file dose. I suspect because im calling node-sass that node-gyp inherits the config !? any way...

registry=http://my-private-npm-repo/
strict-ssl=false
python=C:\Python27\python.exe
msvs_version=2015
NODE_TLS_REJECT_UNAUTHORIZED=0
proxy=http://websense-wcg.lan:8080
https-proxy=http://websense-wcg.lan:8080
cafile=C:\Forcepoint.pem

i still think its bad that node-gyp has hard coded paths to git and nodejs repository and that you cant configure it you use your own local repository. Been able to use a local repository instead of the one on the web allows developers in corporate environments behind firewalls and proxys a work around. So if you could allow a set registry option to it so one could use their own repository that would be really handy

thank you for all your help all the same 👍

bnoordhuis commented 7 years ago

i still think its bad that node-gyp has hard coded paths to git and nodejs repository and that you cant configure it you use your own local repository.

You can: --dist-url=<url>, or --nodedir <dir> if you have a local checkout.