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)
- npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/creat-react-app - Not found npm error 404 npm error 404 'creat-react-app@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url.
- cannot build projects when cwd contains a pathname with ! HOT 1
- Npx create-react-app: 8 vulnerabilities (2 moderate, 6 high) HOT 8
- Create react app HOT 1
- login issue
- my sign in not working
- HMR not working
- [email protected]
- "npx create-react-app" doesn't generate src or public folders HOT 1
- Usage override/workaround/hack with ESLint 9
- Frontend Host doesn't match the current host in the browser, so it's probably incorrect. Links in emails and file downloads from the API will not work. Click here to update.
- [https://newsroom.spotify.com/news/](https://deezer.page.link/fCBsxrTRUZvKbLkA8) HOT 3
- react-scripts/v/5.1.0-next.14 contains multiple security vulnerabilities for inner modules
- Issue in creating react app HOT 4
- cra打包路由切换FiberRootNode会新增,webpack打包就不会 HOT 1
- Error -4048 and Error -4058 and ENOENT, HOT 1
- Des erreurs apres installation de mui sur un projet React 18.0.0 ou supérieur HOT 1
- del proyecto
- how i can run react program in vs code HOT 4
- React JS HOT 4
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.