atom-api-blueprint-preview icon indicating copy to clipboard operation
atom-api-blueprint-preview copied to clipboard

Windows Install fails

Open worldspawn opened this issue 10 years ago • 10 comments

Installation fails to build with this error: I have vs2013, vs2012 and vs 2010 installed

> [email protected] install C:\Users\sam.critchley\AppData\Local\Temp\apm-install-dir-114914-3744-vowuva\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas
> node-gyp rebuild


C:\Users\sam.critchley\AppData\Local\Temp\apm-install-dir-114914-3744-vowuva\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas>node "c:\Chocolatey\lib\Atom.0.136.0\tools\Atom\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(511,5): error MSB8008: Specified platform toolset (v120) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected. [C:\Users\sam.critchley\AppData\Local\Temp\apm-install-dir-114914-3744-vowuva\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj]

worldspawn avatar Oct 13 '14 23:10 worldspawn

I have the same problem. Details:

I have installed Python, npm (all added to the path), VS 2013 and try to install atom package called api-blueprint-preview.

`PS X:> apm install api-blueprint-preview

Installing api-blueprint-preview to C:\Users\mm.atom\packages failed [email protected] install C:\Users\MM~1\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas node-gyp rebuild

C:\Users\MM~1\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas>node "C:\Users\mm\AppData\Local\atom\app-0.179.0\resources\app\apm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. main.cc runas_win.cc C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(623): error C2039: 'ExternalAsciiStringResource' : is not a member of 'v8::String' (..\src\main.cc) [C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\mm.atom.node-gyp.node-gyp\0.21.0\deps\v8\include\v8.h(1809) : see declaration of 'v8::String' C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(623): error C2065: 'ExternalAsciiStringResource' : undeclared identifier (..\src\main.cc) [C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(623): error C2065: 'resource' : undeclared identifier (..\src\main.cc) [C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(623): error C2448: 'NanNew' : function-style initializer appears to be a function definition (..\src\main.cc) [C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(672): warning C4244: 'return' : conversion from 'int64_t' to 'int', possible loss of data (..\src\main.cc) [C:\Users\mm\AppData\Local\Temp\apm-install-dir-115117-7008-ig28xb\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] [...] a lot of errors like above [...] gypnpm ERR! Windows_NT 6.2.9200 npm ERR! argv "C:\Users\mm\AppData\Local\atom\app-0.179.0\resources\app\apm\bin\node.exe" "C:\Users\mm\AppData\Local\atom\app-0.179.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\mm.atom.apm.apmrc" "--userconfig" "C:\Users\mm.atom.apmrc" "install" "C:\Users\MM~1\AppData\Local\Temp\d-115117-7008-mb9spd\package.tgz" "--target=0.21.0" "--arch=ia32" "--msvs_version=2013" npm ERR! node v0.10.35 npm ERR! npm v2.3.0 npm ERR! code ELIFECYCLE

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

My boxs is running Windows 8.1.

any ideas? Thanks!

kotfilemon avatar Feb 17 '15 16:02 kotfilemon

Same as @kotfilemon

Microsoft Windows Version 6.3.9600 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>apm install api-blueprint-preview Installing api-blueprint-preview to C:\Users\Simone.atom\packages failed

[email protected] install C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118- 1756-bt3hp5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_mod ules\runas node-gyp rebuild

C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas>node "C:\Us ers\Simone\AppData\Local\atom\app-0.180.0\resources\app\apm\node_modules\npm\bin \node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. main.cc runas_win.cc C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(623): e rror C2039: 'ExternalAsciiStringResource' : is not a member of 'v8::String' (..
src\main.cc) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3 hp5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\run as\build\runas.vcxproj] C:\Users\Simone.atom.node-gyp.node-gyp\0.21.0\deps\v8\include\v8.h( 1809) : see declaration of 'v8::String' C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(623): e rror C2065: 'ExternalAsciiStringResource' : undeclared identifier (..\src\main.c c) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_m odules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas\build\r unas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(623): e rror C2065: 'resource' : undeclared identifier (..\src\main.cc) [C:\Users\Simone \AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modules\api-blueprin t-preview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(623): e rror C2448: 'NanNew' : function-style initializer appears to be a function defin ition (..\src\main.cc) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-11511 8-1756-bt3hp5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_m odules\runas\build\runas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(672): w arning C4244: 'return' : conversion from 'int64_t' to 'int', possible loss of da ta (..\src\main.cc) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1 756-bt3hp5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modu les\runas\build\runas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1993): error C2039: 'IsExternalAscii' : is not a member of 'v8::String' (..\src\main.cc ) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_mo dules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas\build\ru nas.vcxproj] C:\Users\Simone.atom.node-gyp.node-gyp\0.21.0\deps\v8\include\v8.h( 1809) : see declaration of 'v8::String' C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1994): error C2039: 'ExternalAsciiStringResource' : is not a member of 'v8::String' (.. \src\main.cc) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt 3hp5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\ru nas\build\runas.vcxproj] C:\Users\Simone.atom.node-gyp.node-gyp\0.21.0\deps\v8\include\v8.h( 1809) : see declaration of 'v8::String' C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1994): error C4430: missing type specifier - int assumed. Note: C++ does not support de fault-int (..\src\main.cc) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-1 15118-1756-bt3hp5\node_modules\api-blueprint-preview\node_modules\pathwatcher\no de_modules\runas\build\runas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1994): error C2143: syntax error : missing ';' before '*' (..\src\main.cc) [C:\Users\Si mone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modules\api-blue print-preview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1994): error C2065: 'ext' : undeclared identifier (..\src\main.cc) [C:\Users\Simone\App Data\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modules\api-blueprint-pr eview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1995): error C2065: 'ext' : undeclared identifier (..\src\main.cc) [C:\Users\Simone\App Data\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modules\api-blueprint-pr eview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1995): error C2039: 'GetExternalAsciiStringResource' : is not a member of 'v8::String' (..\src\main.cc) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756 -bt3hp5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules \runas\build\runas.vcxproj] C:\Users\Simone.atom.node-gyp.node-gyp\0.21.0\deps\v8\include\v8.h( 1809) : see declaration of 'v8::String' C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1996): error C2065: 'ext' : undeclared identifier (..\src\main.cc) [C:\Users\Simone\App Data\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modules\api-blueprint-pr eview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1996): error C2227: left of '->data' must point to class/struct/union/generic type (..
src\main.cc) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3 hp5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\run as\build\runas.vcxproj] type is ''unknown-type'' C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1997): error C2065: 'ext' : undeclared identifier (..\src\main.cc) [C:\Users\Simone\App Data\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modules\api-blueprint-pr eview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj] C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-bt3hp5\node_modul es\api-blueprint-preview\node_modules\pathwatcher\node_modules\nan\nan.h(1997): error C2227: left of '->length' must point to class/struct/union/generic type (. .\src\main.cc) [C:\Users\Simone\AppData\Local\Temp\apm-install-dir-115118-1756-b t3hp5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\r unas\build\runas.vcxproj] type is ''unknown-type''

gypnpm ERR! Windows_NT 6.2.9200 npm ERR! argv "C:\Users\Simone\AppData\Local\atom\app-0.180.0\resources
app\apm\bin\node.exe" "C:\Users\Simone\AppData\Local\atom\app-0.180.0 \resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:
\Users\Simone.atom.apm.apmrc" "--userconfig" "C:\Users\Simone.atom. apmrc" "install" "C:\Users\Simone\AppData\Local\Temp\d-115118-1756-10si7f9 \package.tgz" "--target=0.21.0" "--arch=ia32" "--msvs_version=2012" npm ERR! node v0.10.35 npm ERR! npm v2.5.1 npm ERR! code ELIFECYCLE

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

spescina avatar Feb 18 '15 13:02 spescina

please, see that comment

https://github.com/atom/node-runas/issues/15#issuecomment-74905395

seems that package's dependencies need to be updated.

kotfilemon avatar Feb 19 '15 14:02 kotfilemon

Upgrading package's dependencies didnot help.

Still cannot install on Windows 8.1

kotfilemon avatar Feb 20 '15 10:02 kotfilemon

@kotfilemon I've published a new version 0.3.0 with your changes. Please try installing now.

danielgtaylor avatar Feb 20 '15 17:02 danielgtaylor

it's working now!

PS X:> apm install api-blueprint-preview Installing api-blueprint-preview to C:\Users\mm.atom\packages done

thanks!

kotfilemon avatar Feb 23 '15 08:02 kotfilemon

Still not working for me (even with 0.3.0)

> [email protected] install C:\Users\Adriaan\AppData\Local\Temp\apm-install-dir-115320-59184-1blzmrs\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas
> node-gyp rebuild


C:\Users\Adriaan\AppData\Local\Temp\apm-install-dir-115320-59184-1blzmrs\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas>node "C:\Users\Adriaan\AppData\Local\atom\app-0.192.0\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 

gypnpm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Users\\Adriaan\\AppData\\Local\\atom\\app-0.192.0\\resources\\app\\apm\\bin\\\\node.exe" "C:\\Users\\Adriaan\\AppData\\Local\\atom\\app-0.192.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Adriaan\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Adriaan\\.atom\\.apmrc" "install" "C:\\Users\\Adriaan\\AppData\\Local\\Temp\\d-115320-59184-1rwb75n\\package.tgz" "--target=0.22.0" "--arch=ia32"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

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

call-a3 avatar Apr 20 '15 16:04 call-a3

once again with version 0.6:

> [email protected] install C:\Users\mm\AppData\Local\Temp\apm-install-dir-115915-11396-1o2sbnk\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas
> node-gyp rebuild


C:\Users\mm\AppData\Local\Temp\apm-install-dir-115915-11396-1o2sbnk\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas>node     "C:\Users\mm\AppData\Local\atom\app-1.0.5\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
Projekty w tym rozwi�zaniu s� tworzone po kolei. Abu umo�liwi� tworzenie r�wnoleg�e, dodaj prze��cznik "/m".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5): error MSB8020: The builds tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v120 to build using the v120 build tools. [C:\Users\mm\AppData\Local\Temp\apm-install-dir-115915-11396-1o2sbnk\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas\build\runas.vcxproj]

npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm WARN deprecated [email protected]: the module is now available as 'css-what'
gypnpm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Users\\mm\\AppData\\Local\\atom\\app-1.0.5\\resources\\app\\apm\\bin\\\\node.exe" "C:\\Users\\mmi\\AppData\\Local\\atom\\app-1.0.5\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig"     "C:\\Users\\mm\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\mm\\.atom\\.apmrc"     "install" "C:\\Users\\mm\\AppData\\Local\\Temp\\d-115915-11396-1sxpm0a\\package.tgz" "-    -target=0.22.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

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

kotfilemon avatar Oct 15 '15 19:10 kotfilemon

still fails here as well - are there any known workarounds for this?

olifink avatar Nov 10 '15 14:11 olifink

still failing. i'm working on OS X rather than windows. i've tried running brew update incase anything was out of date, and I've also installed aglio globally but the install still fails. im getting the same error as the people above.

alecholmez avatar Nov 30 '15 21:11 alecholmez