New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your build does not work on a windows platform #157
Comments
Hello @JoeGrasso, it should work on Windows also I've tested it recently again on windows 10 and 7. Can you tell me more about your issue? |
While on Windows 10, using ...
I receive this on npm run build ..... C: __temp\isomorphic-flux-boilerplate-master\node_modules.bin\webpack:4 SyntaxError: Unexpected token case npm ERR! Windows_NT 10.0.10240 npm ERR! Please include the following file with any support request: |
More like a node issue, what is your nodejs and npm version? |
v 4.2.2 node |
FYI, upgraded to npm v3.5 just now. Issue remains. |
What is your bash on windows? have you tried gitbash? (seems like this issue electron/rebuild#22 (comment)) |
I am afraid you lost me there. I thought windows does not use Bash. |
@JoeGrasso Okay that's why it doesn't work, you run it into windows cli :) |
Is that the same as using Cygwin64 Terminal? I tried it with that same error |
Kind of I suppose... That's weird, can you try with git bash? I'll check later tonight with cygwin. |
Just installed git and went to that directory and ran "npm run build" Same issue. |
found the same issue @iam4x any ideas? |
Looks like this can happen when you run "node ...some\node\bin" in Windows. The solution looks to be to drop the "node" or in this case, the "babel-node". Can you try changing build to
and report back? |
@cridenour Yes saw this answer into the other issues as well, did someone on windows tried it? |
@cridenour Nope. did not work. also windows hates the |
v2.6.4 git Shouldn't we not be using babel-node for production anyways? @cridenour I think it supposed to be
But this now gives me: ...\webpack\prod.config.js:1
(function (exports, require, module, __filename, __dirname) { import webpack from 'webpack';
^^^^^^ @luigiplr you should reinstall git and select |
@JoeGrasso @luigiplr try this:
But I find that a little ugly. So, if someone have another solution ^^. |
We use cmdr (http://cmder.net/ ) to emulate console on Windows machines. Still we had to modify scripts and separate build to clean and build tasks to get it working. "scripts": {
"clean": "rm -rf dist",
"build": "node_modules/.bin/babel-node -- ./node_modules/webpack/bin/webpack.js --stats --config ./webpack/prod.config.js",
...
}, |
This is actually a pretty common issue, to fix simply need to add |
I know the kool thing is to develop on a MAC but some of us use windows. Could you kindly offer the build syntax for windows?
The text was updated successfully, but these errors were encountered: