If you use npm 5.1 or earlier, you can't use npx
.
Instead, install create-react-app
globally:
npm install -g create-react-app
Now you can run:
create-react-app my-app
If you use npm 5.1 or earlier, you can't use npx
.
Instead, install create-react-app
globally:
npm install -g create-react-app
Now you can run:
create-react-app my-app
thank you |
thanks. That helps |
Thanks |
well done |
thank you |
thank you ! |
gracias |
Gracia Plenna! |
I did everything as it says to do and after successful installing create-react-app i still can't use create-react-app apps-name. |
bless. |
Thanks |
Thank you. |
Tanks braddah |
@muchamateusz reinstalling node fixed that for me |
yeah this is helpful. Awesome! |
why was this created as a secret gist? |
Well done, but I want to know about npx in detail. |
Thanks! |
thanks ! |
Appreciated :) |
Мерси! |
Thanks!!! |
no wonder thanks |
wow, Thanks ) |
Good stuff |
Everything works well, thanks |
Thanks :) |
it just says npm is not recognized as an internal or external command, operable program, or batch file |
Note that by default Also as per the npm trouble shooting guide:
|
Thanks! |
Kube23.....You sir, are a genius. Uninstalling then installing Node.js allowed npx to work properly for me. https://treehouse.github.io/installation-guides/windows/node-windows.html |
Hey guy, Thanks a lot. It worked! Now how to parse a markdown code to an html? I've used the
|
Дякую! |
Thanks it works :) |
wow! It worked. |
good job |
Installed onto ubuntu server, but i got a wierd error Below is the output:
|
谢谢 |
thanks. |
|
THANK YOU BRO |
Thank you! Is better to install the new version? |
спасибо ) |
cudos :) |
If I want to upgrade the react version (I meant 'version' inside the package.json file), what I am supposed to do? |
change the version of react in your package.json, but make sure that it may affect some of the version of library you used on package.json. |
Merci ! |
thanks |
thanks |
Thank you! |
not working for me saying Missing dependencies in package.json |
thanks it worked |
Many many thanks |
I am new in IT sector and am learning docker. $ npx create-react-app frontend Creating a new React app in E:\frontend. Installing packages. This might take a couple of minutes.
58 packages are looking for funding found 1 low severity vulnerability Initialized a git repository. Installing template dependencies using npm...
58 packages are looking for funding found 1 low severity vulnerability npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself. removed 1 package and audited 931635 packages in 23.603s 58 packages are looking for funding found 1 low severity vulnerability Success! Created frontend at E:\frontend npm start npm run build npm test npm run eject We suggest that you begin by typing: cd frontend Happy hacking! AmarPc@DESKTOP-9CIBEN7 MINGW64 /e |
Thanks |
There might be a problem with the project dependency tree. The react-scripts package provided by Create React App requires a dependency: "babel-loader": "8.1.0" Don't try to install it manually: your package manager does it automatically. /Users/noahperez/node_modules/babel-loader (version: 8.0.6) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. To fix the dependency tree, try following the steps below in the exact order:
In most cases, this should be enough to fix the problem.
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
Thank's
…On Sun, Jun 21, 2020, 4:53 PM Noah Perez ***@***.***> wrote:
*@NoahPerez* commented on this gist.
------------------------------
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix
locally.
The react-scripts package provided by Create React App requires a
dependency:
"babel-loader": "8.1.0"
Don't try to install it manually: your package manager does it
automatically.
However, a different version of babel-loader was detected higher up in the
tree:
/Users/noahperez/node_modules/babel-loader (version: 8.0.6)
Manually installing incompatible versions is known to cause hard-to-debug
issues.
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to
an .env file in your project.
That will permanently disable this message but you might encounter other
issues.
To fix the dependency tree, try following the steps below in the exact
order:
1. Delete package-lock.json (not package.json!) and/or yarn.lock in
your project folder.
2. Delete node_modules in your project folder.
3. Remove "babel-loader" from dependencies and/or devDependencies in
the package.json file in your project folder.
4. Run npm install or yarn, depending on the package manager you use.
In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:
1.
If you used npm, install yarn (http://yarnpkg.com/) and repeat the
above steps with it instead.
This may help because npm has known issues with package hoisting which
may get resolved in future versions.
2.
Check if /Users/noahperez/node_modules/babel-loader is outside your
project directory.
For example, you might have accidentally installed something in your
home folder.
3.
Try running npm ls babel-loader in your project folder.
This will tell you which other package (apart from the expected
react-scripts) installed babel-loader.
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in
your project.
That would permanently disable this preflight check in case you want to
proceed anyway.
P.S. We know this message is long but please read the steps above :-) We
hope you find them helpful!
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ***@***.*** start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ***@***.*** start script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/noahperez/.npm/_logs/2020-06-21T11_49_43_601Z-debug.log
noahperez@Noahs-MacBook-Air my-testing-again %
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://gist.github.com/4064d3c23a77c74a3614c498a8bb1c5f#gistcomment-3349377>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANTJZ4LHQ4JK4LAK2MGWL4DRXXYDDANCNFSM4H2WEIRA>
.
|
use "sudo" in both the commands on ubuntu for them to work (I faced this issue),thanks! |
i am also facing this problem after install react app events.js:292 Error: spawn cmd ENOENT npm ERR! A complete log of this run can be found in: |
For those who have an error when using the command follow these steps sudo npm cache clean -f with that they update npm and if you have problems with the node version n 10.16.0 after $ n node / 4.9.1 Use up / down arrow keys to select a version, return key to install, d to delete, q to quit |
please help with these issues; I can't really seem to install the npm packages in my directory You are running We no longer support global installation of Create React App. Please remove any global installs with one of the following commands:
The latest instructions for creating a new app can be found here: npm ERR! code 1 npm ERR! A complete log of this run can be found in: C:\Users\AHMED\Desktop\robohash\trove-app> |
thanks |
谢谢 |
|
|
Thanks! |
thank you boss |
This comment has been minimized.
thanks