Skip to content

Instantly share code, notes, and snippets.

@CTimmerman
Created August 5, 2015 08:21
Show Gist options
  • Save CTimmerman/61df1b97a72b891da34e to your computer and use it in GitHub Desktop.
Save CTimmerman/61df1b97a72b891da34e to your computer and use it in GitHub Desktop.
Demeteorized Node on Azure adventures
PS C:\meteor\simple-todos\output> npm install
npm WARN package.json simple-todos@0.0.1 No repository field.
npm WARN package.json simple-todos@0.0.1 No license field.
-
> fibers@1.0.5 install C:\meteor\simple-todos\output\node_modules\fibers
> node ./build.js
child_process: customFds option is deprecated, use stdio instead.
C:\meteor\simple-todos\output\node_modules\fibers>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodej
s\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --release ) else (node rebui
ld --release )
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: connect ETIMEDOUT
gyp ERR! stack at exports._errnoException (util.js:746:11)
gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "
rebuild" "--release"
gyp ERR! cwd C:\meteor\simple-todos\output\node_modules\fibers
gyp ERR! node -v v0.12.6
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
Build failed
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\np
m-cli.js" "install"
npm ERR! node v0.12.6
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! fibers@1.0.5 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@1.0.5 install script 'node ./build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls fibers
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\meteor\simple-todos\output\npm-debug.log
PS C:\meteor\simple-todos\output>
PS C:\meteor\simple-todos\output>
PS C:\meteor\simple-todos\output>
PS C:\meteor\simple-todos\output> npm install
npm WARN package.json simple-todos@0.0.1 No repository field.
npm WARN package.json simple-todos@0.0.1 No license field.
|
> fibers@1.0.5 install C:\meteor\simple-todos\output\node_modules\fibers
> node ./build.js
child_process: customFds option is deprecated, use stdio instead.
C:\meteor\simple-todos\output\node_modules\fibers>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodej
s\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --release ) else (node rebui
ld --release )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
fibers.cc
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used,
but unwind semantics are not enabled. Specify /EHsc [C:\meteor\simple-todos\output\node_modules\fibers\build\fibers.vc
xproj]
..\src\fibers.cc(707): warning C4244: '=' : conversion from 'double' to 'size_t', possible loss of data [C:\meteor\simp
le-todos\output\node_modules\fibers\build\fibers.vcxproj]
coroutine.cc
..\src\coroutine.cc(109): warning C4552: '!' : operator has no effect; expected operator with side-effect [C:\meteor\si
mple-todos\output\node_modules\fibers\build\fibers.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\vector(694): warning C4530: C++ exception handler used,
but unwind semantics are not enabled. Specify /EHsc [C:\meteor\simple-todos\output\node_modules\fibers\build\fibers.vcx
proj]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\vector(688) : while compiling class template m
ember function 'std::vector<void *,std::allocator<_Ty>>::vector(unsigned int)'
with
[
_Ty=void *
]
..\src\coroutine.cc(156) : see reference to function template instantiation 'std::vector<void *,std::allocato
r<_Ty>>::vector(unsigned int)' being compiled
with
[
_Ty=void *
]
c:\meteor\simple-todos\output\node_modules\fibers\src\coroutine.h(16) : see reference to class template insta
ntiation 'std::vector<void *,std::allocator<_Ty>>' being compiled
with
[
_Ty=void *
]
coro.c
Creating library C:\meteor\simple-todos\output\node_modules\fibers\build\Release\fibers.lib and object C:\meteor\s
imple-todos\output\node_modules\fibers\build\Release\fibers.exp
Generating code
Finished generating code
fibers.vcxproj -> C:\meteor\simple-todos\output\node_modules\fibers\build\Release\\fibers.node
Installed in `C:\meteor\simple-todos\output\node_modules\fibers\bin\win32-ia32-v8-3.28\fibers.node`
fibers@1.0.5 node_modules\fibers
PS C:\meteor\simple-todos\output>
@CTimmerman
Copy link
Author

I simply waited a few seconds. Also, this is the default Meteor button press count app. The actual todos example can be had with meteor create --example todos but after demeteorizing that causes horrible errors in npm install. npm install --msvs_version=2012 is the least scary:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build t
ools for Visual Studio 2012 (Platform Toolset = 'v110') cannot be found. To build using the v110 build tools, please in
stall Visual Studio 2012 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting t
he Project menu or right-click the solution, and then selecting "Upgrade Solution...". [C:\meteor\todos\output\node_mod
ules\bcrypt\build\bcrypt_lib.vcxproj]

To get rid of that, remove the "bcrypt" line in package.json and run npm install bcrypt-nodejs or install Visual Studio Community 2015 and in package.json set bcrypt version to 8.4 if using node engine 0.12.6.

Also, Azure Web Apps use a pipe name in $Env:PORT, so remove the parseInt() from process.env.PORT in programs\server\packages\webapp.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment