danielgtaylor / atom-api-blueprint-preview

Live preview API Blueprint in Atom
MIT License
43 stars 19 forks source link

Windows Install fails #6

Open worldspawn opened 9 years ago

worldspawn commented 9 years ago

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

> runas@1.0.1 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]
kotfilemon commented 9 years ago

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 runas@1.1.0 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! runas@1.1.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the runas@1.1.0 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!

spescina commented 9 years ago

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

runas@1.1.0 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! runas@1.1.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the runas@1.1.0 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 commented 9 years ago

please, see that comment

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

seems that package's dependencies need to be updated.

kotfilemon commented 9 years ago

Upgrading package's dependencies didnot help.

Still cannot install on Windows 8.1

danielgtaylor commented 9 years ago

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

kotfilemon commented 9 years ago

it's working now!

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

thanks!

call-a3 commented 9 years ago

Still not working for me (even with 0.3.0)

> runas@2.0.0 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! runas@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@2.0.0 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 commented 8 years ago

once again with version 0.6:

> runas@2.0.0 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 CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
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! runas@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the runas@2.0.0 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.
olifink commented 8 years ago

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

alecholmez commented 8 years ago

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.