Can we deploy meteor app on windows machine (or localhost)?


#1

I explored on internet, I found many suggestion but nothing worked for me. I tried demeteorizer also. But that didn’t work. Does anybody hav solution for this?


#2

Meteor runs fine on windows as it’s running on nodejs (I mostly develop on windows). Although not advisable you could potentially deploy to windows, would need a lot of work though. Why would you want to deploy to windows by the way?


#3

I want to use few small web apps for personal purpose and I also have few customers (who are actually my friend) who wants a app for their desktop only. For those customers I still want to use meteor because I want to understand the and learn meteor in detail.
If you have some other solution for my problem then it will be helpful for me.
Thanks.


#4

Okay, so you don’t actually want to deploy to windows but build a desktop app for windows. In that case you can check out electron: https://atmospherejs.com/arboleya/electrify


#5

I want to deploy on windows also. As I am in India “Windows” is the default OS for us. :smile:


#6

Hi Prasad,

You can run the Meteor App by command prompt and this will run the server at port 3000, You can use your web browser to open the app via : http://localhost:3000

It works without any issues.

Please let me know what kind of issues are you facing?


#7

Hi manusharma,
I want to deploy my meteor app on windows. I am aware of running it on windows.
Please let me know if know deploying it on windows.
Thanks.


#8

So what wasn’t working with demeteorizer? If you just follow the steps in the other thread you posted in it should work.


#9

It is not working. I have posted the error. I tried on windows 8 with node version 0.10.36 (here npm install failed) and then with 0.12.7 (here npm start failed).
Now I tried the same with Windows 7 and I got error that I posted above.


#10

I don’t see any error posted?


#11

Here is the error
C:\myMeteorApp\converted\bundle\programs\server>npm start

meteor-dev-bundle@0.0.0 start C:\myMeteorApp\converted\bundle\programs\server
node …/…/main
C:\myMeteorApp\converted\bundle\programs\server\node_modules\fibers\future.js:24
5
throw(ex);
^
Error: The specified procedure could not be found.
C:\myMeteorApp\converted\bundle\programs\server\npm\npm-bcrypt\node_modules\bcry
pt\build\Release\bcrypt_lib.node
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at bindings (C:\myMeteorApp\converted\bundle\programs\server\npm\npm-bcrypt
node_modules\bcrypt\node_modules\bindings\bindings.js:74:15)
at Object. (C:\myMeteorApp\converted\bundle\programs\server\npm\n
pm-bcrypt\node_modules\bcrypt\bcrypt.js:3:35)
at Module._compile (module.js:460:26)
at Object.Module._extensions…js (module.js:478:10)
at Module.load (module.js:355:32)

npm ERR! Windows_NT 6.2.9200
npm ERR! argv “C:\Program Files (x86)\nodejs\node.exe” “C:\Program Files (
x86)\nodejs\node_modules\npm\bin\npm-cli.js” "start"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! meteor-dev-bundle@0.0.0 start: node …/…/main
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the meteor-dev-bundle@0.0.0 start script ‘node …/…/main’.
npm ERR! This is most likely a problem with the meteor-dev-bundle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node …/…/main
npm ERR! You can get their info via:
npm ERR! npm owner ls meteor-dev-bundle
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\myMeteorApp\converted\bundle\programs\server\npm-debug.log

C:\myMeteorApp\converted\bundle\programs\server>


#12

and for npm install I got this error

C:\myMeteorApp\converted\bundle\programs\server>npm install
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
/

fibers@1.0.5 install C:\myMeteorApp\converted\bundle\programs\server\node_modu
les\fibers
node ./build.js

C:\myMeteorApp\converted\bundle\programs\server\node_modules\fibers>node “C:\Pro
gram Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\…\node_modules\no
de-gyp\bin\node-gyp.js” rebuild --release
Building the projects in this solution one at a time. To enable parallel build,
please add the “/m” switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targe
ts(362,5): warning MSB8003: Could not find WindowsSDKDir variable from the regi
stry. TargetFrameworkVersion or PlatformToolset may be set to an invalid versi
on number. [C:\myMeteorApp\converted\bundle\programs\server\node_modules\fibers
\build\fibers.vcxproj]
fibers.cc
coroutine.cc
c:\users\sinppw.node-gyp\0.10.36\deps\uv\include\uv-private/uv-win.h(32): fata
l error C1083: Cannot open include file: ‘winsock2.h’: No such file or director
y (…\src\fibers.cc) [C:\myMeteorApp\converted\bundle\programs\server\node_modu
les\fibers\build\fibers.vcxproj]
c:\users\sinppw.node-gyp\0.10.36\deps\uv\include\uv-private/uv-win.h(32): fata
l error C1083: Cannot open include file: ‘winsock2.h’: No such file or director
y (…\src\coroutine.cc) [C:\myMeteorApp\converted\bundle\programs\server\node_m
odules\fibers\build\fibers.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “node” “C:\Program Files (x86)\nodejs\node_modules\npm\nod
e_modules\node-gyp\bin\node-gyp.js” “rebuild” "–release"
gyp ERR! cwd C:\myMeteorApp\converted\bundle\programs\server\node_modules\fibers

gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
Build failed

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.
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! System Windows_NT 6.1.7601
npm ERR! command “C:\Program Files (x86)\nodejs\\node.exe” “C:\Program File
s (x86)\nodejs\node_modules\npm\bin\npm-cli.js” "install"
npm ERR! cwd C:\myMeteorApp\converted\bundle\programs\server
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

C:\myMeteorApp\converted\bundle\programs\server>


#13

Hi Prasad,

Sorry I got confused from the title of the post.

Will this help? : https://github.com/onmodulus/demeteorizer#windows-support,

I can see that there are some issues with Node Fibers, There are some issues I also faced with Node Fibers during some package installation in past on Windows.

Thanks,
Manu


#14

Manu, I tried that also and I got error that I posted above.


#15

nlammertyn, I am right now trying “electrify” also. I am able to package my app for windows but when it launches Electron it is not showing anything. I am waiting since 5 min but nothing is coming except my app name as title for Electron window.


#16

Hi Prasad,

Any Luck? Are you able to rectify the issue?


#17

No. Not yet. There an issue with Electrify also. Author of Electrify is working on it.


#18

Electrify solved my problem.
Thanks to all.


#19

Good to Know this :thumbsup: