Closed Maicarons2022 closed 2 years ago
Hi @Maicarons2022 , Thanks for opening this issue. I just checked and there was a dependencies version conflict in the CRA-Template.
Worked on it and now it has been Fixed.
Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
PS E:\Github\react-windows-ui> cd ../
PS E:\Github> npx create-react-app my-app --template file:./react-windows-ui/src/cra-template
Creating a new React app in E:\Github\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template-windows-ui...
added 1389 packages in 2m
205 packages are looking for funding
run `npm fund` for details
Initialized a git repository.
Installing template dependencies using npm...
added 5 packages in 8s
205 packages are looking for funding
run `npm fund` for details
Removing template package using npm...
removed 1 package, and audited 1395 packages in 6s
205 packages are looking for funding
run `npm fund` for details
6 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
Created git commit.
Success! Created my-app at E:\Github\my-app
Inside that directory, you can run several commands:
npm start
Starts the development server.
npm run build
Bundles the app into static files for production.
npm test
Starts the test runner.
npm run eject
Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!
We suggest that you begin by typing:
cd my-app
npm start
Happy hacking!
PS E:\Github>
cd my-app
npm start
Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
PS E:\Github\my-app> npm start
> my-app@0.1.0 start
> react-scripts start
Compiled successfully!
You can now view my-app in the browser.
Local: http://localhost:3000
On Your Network: http://192.168.43.209:3000
Note that the development build is not optimized.
To create a production build, use npm run build.
webpack compiled successfully
Do let us know if its all set from your side.
It's ok now, thank you!
In fect, I used the yarn
after npm reported errors, however, yarn
could reslove the conflicts and the project could run well by the yarn
:)
Hello developer,
I'm a new in the react and while using templates, I got many errors.
env
nodejs:16.14.0 npm/npx:8.6.0 os:windows10
output
init:
start:
How to resolve it? pls