ffx-meteor-react-boilerplate icon indicating copy to clipboard operation
ffx-meteor-react-boilerplate copied to clipboard

Windows Support?

Open macjabeth opened this issue 8 years ago • 6 comments

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! [email protected] postinstall: /bin/sh ./.scripts/postinstall.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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

macjabeth avatar Feb 08 '16 21:02 macjabeth

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 avatar Feb 08 '16 21:02 ffxsam

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.

ffxsam avatar Feb 08 '16 22:02 ffxsam

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

unmonk avatar Mar 31 '16 01:03 unmonk

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

jptissot avatar Mar 31 '16 01:03 jptissot

For [email protected], 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

jbenga avatar Apr 06 '16 04:04 jbenga

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.

kifirkin avatar Jun 03 '16 19:06 kifirkin