ffxsam / ffx-meteor-react-boilerplate

Meteor 1.4 + React boilerplate (DEPRECATED/ABANDONED) 👋
133 stars 20 forks source link

Windows Support? #1

Open macjabeth opened 8 years ago

macjabeth commented 8 years ago

Windows doesn't have a /bin/sh... I tried to use npm install in the Git Bash and Babun console, both gave the follow:

npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\macbe_000\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v4.2.6 npm ERR! npm v3.5.3 npm ERR! code ELIFECYCLE npm ERR! ffx-meteor-react-boilerplate@1.0.0 postinstall: /bin/sh ./.scripts/postinstall.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ffx-meteor-react-boilerplate@1.0.0 postinstall script '/bin/sh ./.scripts/postinstall.sh'. 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 ffx-meteor-react-boilerplate package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! /bin/sh ./.scripts/postinstall.sh npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs ffx-meteor-react-boilerplate npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls ffx-meteor-react-boilerplate npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\macbe_000\Documents\GitHub\meteor-avalon\npm-debug.log

ffxsam commented 8 years ago

Tough one, since I'm not a Windows guy at all. Hopefully someone can do a PR. Ideally the npm scripts would work on Mac, Linux, and Windows.

ffxsam commented 8 years ago

As a temporary workaround, remove the scripts from package.json, do an npm install, and then look at what .scripts/postinstall.sh is doing and manually execute those commands.

unmonk commented 8 years ago

As said above, just run meteor update after npm install.

jptissot commented 8 years ago

This is huge news. Windows 10 is getting bash. http://www.theverge.com/2016/3/30/11331014/microsoft-windows-linux-ubuntu-bash

jbenga commented 8 years ago

For METEOR@1.3, run the below commands on windows, and it will work fine:

meteor npm install --save react react-addons-pure-render-mixin react-tap-event-plugin meteor npm install --save react-redux redux react-mounter react-addons-perf redux-logger meteor npm install --save redux-thunk

kifirkin commented 8 years ago

Hi! I have git-for-windows installed with option that included linux scripts and added sh.exe to my path, and I've changed /bin/sh to sh in postinstall and scaffold in packages.json. Everything goes fine now.