Comments (17)
Sure, I'll try all the commands & scripts from scratch when I get some time and report back.
I'm your worst case user - using npm2 on Windows, running on the cheapest Lenovo laptop Amazon UK had 5 months ago, with a crap CPU and an HDD 😸
Anything which uses vanilla Babel 6 presets is pretty miserable to install on npm2 with this setup due to the duplicated dependencies for each plugin.
from create-react-app.
Eh, that’s not fun. Maybe I could exclude whatever depends on fsevents
from the bundle but keep the rest bundled.
from create-react-app.
Do you have an AppVeyor account to run CI on Windows?
Better to have things checked automatically on all platforms, but new tests would need to be written.
from create-react-app.
Yeah.. I wonder if we can do something crazy like put all non-binary deps in a tarball or something.
from create-react-app.
Until the packages are public, you can do this to test the full flow:
npm i -g counter-redux@qwertyuiop
create-react-app whatever --scripts-version react-elmish-example@bundled
from create-react-app.
Tried it with npm 2.15.8 (currently the default suggested windows install flow). Tiny problem: the unicode hourglass shows up as a square in powershell. Larger problem: fsevents
apparently depends on having python
installed. (I don't normally use this as a dev machine.) I'll see if there's a workaround. Here's the error for the record.
from create-react-app.
Interesting. fsevents
is optional, on OS X it gets installed for faster rebuilds but webpack should work without it. Can you also try
create-react-app whatever --scripts-version react-elmish-example@no-bundle
to see if fsevents
doesn't show up this way?
from create-react-app.
Ah I see fsevents
is OS X only. With @no-bundle
now both the create-react-app
phase and the npm start
are working for me. I'll poke around to see if I can break anything else.
from create-react-app.
Another problem - when I eject and then run start, it can't find webpack any more. But when I manually run a npm install
after that, it works fine. I suspect that whatever logic runs an npm install
immediately after ejecting is not working on Windows.
from create-react-app.
A little nitpick: the message for npm run build
is incorrect on Windows.
You can now serve it with any static server:
cd build
python -m SimpleHTTPServer 9000
open http://localhost:9000
because open
isn't a windows thing. AFAICT there is no Windows command line equivalent so unless someone has a good idea maybe just leave this message as is.
from create-react-app.
Yeah, I was hoping that maybe people would just read it as a word if they know there is no such command. Open to better ideas (can check platform?)
from create-react-app.
OK I can't find any more ways to break it. So just two big things, fsevents
in the bundle and the eject
-then-start
problem. Unrelated: @gaearon would you mind briefly checking FB messenger? I just wanted to ask you a quick question there. :P
from create-react-app.
For the build message, you could check for process.platform
being 'win32'
and use start
instead of open
.
Windows doesn't ship with a Python installation, though - a handy alternative would be to recommend npm install -g http-server
and running hs
.
from create-react-app.
from create-react-app.
I think we’re good. I’ll double check now.
from create-react-app.
Okay, final prerelease:
npm i -g counter-redux@qwertyuiop
create-react-app my-app --scripts-version react-elmish-example@pretty-close
from create-react-app.
Also when installing, if it throws a "JSON" error and crashes, try running this command:
create-react-app appname --save
or create-react-app appname --save-exact and then try again.
if it persists you can try using a newer version of node.
from create-react-app.
Related Issues (20)
- Create issue Facebook app HOT 3
- Uncaught ReferenceError: process is not defined at emitReadable (_stream_readable.js:529:1) at onEofChunk (_stream_readable.js:506:1) at readableAddChunk (_stream_readable.js:255:1) at Readable.push (_stream_readable.js:241:1) at index.js:423:1 emitReadable @ _stream_readable.js:529 onEofChunk @ _stream_readable.js:506 readableAddChunk @ _stream_readable.js:255 Readable.push @ _stream_readable.js:241 (anonymous) @ index.js:423 Show 5 more frames Show less
- Run `npm install` in `D:\git\r\`. HOT 1
- Hi gaearon
- Hebosho911
- Could the community save this dead project? HOT 4
- pateknuk
- use parameter decorator HOT 5
- My React app not installing HOT 3
- create-react-app problem
- Can't start creat react app HOT 2
- Facing an error to install firebase HOT 1
- It is intentionally verbose. Otherwise there is a risk of accidentally exposing a private key on the machine that happens to have the same name.
- npx create-react-app HOT 9
- Dependency Packages introduced vulnerabilities associated with react-scripts 5.0.1
- I am not able to run the project i have uploaded my issue so please help me or provide me a updated documentation for this HOT 1
- Is there a way to resolve a GitHub octokit.js library issue while trying to build the react app?
- sir.k
- @1eldiego Good evening, is Create-React-App really abandoned? I'm joining now to contribute, help and network... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-react-app.