react创建

Microsoft Windows [版本 6.1.7601]
版权所有 © 2009 Microsoft Corporation。保留所有权利。

C:\Users>node -V
This application is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
C:\Users\Administrator>node -V
node: bad option: -V

C:\Users\Administrator.XP69>node -v
v13.14.0

C:\Users\Administrator>node -v
This application is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
C:\Users\Administrator>node -v
v14.15.0

C:\Users\Administrator>e:

E:>cd react_test

E:\react_test>npm config set registry https://registry.npm.taobao.org

E:\react_test>npm i -g create-react-app
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
C:\Users\Administrator\AppData\Roaming\npm\create-react-app -> C:\Users\Administrator.XP69\AppData\Roaming\npm\node_modules\create-react-app\index.js

  • create-react-app@5.0.1
    added 67 packages from 27 contributors in 38.238s

E:\react_test>create-react-app myweb

Creating a new React app in E:\react_test\myweb.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template…

core-js@3.27.2 postinstall E:\react_test\myweb\node_modules\core-js
node -e “try{require(‘./postinstall’)}catch(e){}”

core-js-pure@3.27.2 postinstall E:\react_test\myweb\node_modules\core-js-pure
node -e “try{require(‘./postinstall’)}catch(e){}”

  • react-dom@18.2.0
  • cra-template@1.2.0
  • react@18.2.0
  • react-scripts@5.0.1
    added 1429 packages from 625 contributors in 438.89s

231 packages are looking for funding
run npm fund for details

Initialized a git repository.

Installing template dependencies using npm…
npm WARN @apideck/better-ajv-errors@0.3.6 requires a peer of ajv@>=8 but none is installed. You must install peer dependencies yourself.
npm WARN fork-ts-checker-webpack-plugin@6.5.2 requires a peer of typescript@>= 2.7 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.21.0 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.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

  • @testing-library/react@13.4.0
  • web-vitals@2.1.4
  • @testing-library/jest-dom@5.16.5
  • @testing-library/user-event@13.5.0
    added 55 packages from 81 contributors in 41.761s

231 packages are looking for funding
run npm fund for details

Removing template package using npm…

npm WARN @apideck/better-ajv-errors@0.3.6 requires a peer of ajv@>=8 but none is installed. You must install peer dependencies yourself.
npm WARN fork-ts-checker-webpack-plugin@6.5.2 requires a peer of typescript@>= 2.7 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.21.0 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.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})

removed 1 package in 27.463s

231 packages are looking for funding
run npm fund for details

Git commit not created Error: Command failed: git commit -m “Initialize project using Create React App”
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:652:15)
at tryGitCommit (E:\react_test\myweb\node_modules\react-scripts\scripts\init.js:62:5)
at module.exports (E:\react_test\myweb\node_modules\react-scripts\scripts\init.js:350:25)
at [eval]:3:14
at Script.runInThisContext (vm.js:132:18)
at Object.runInThisContext (vm.js:309:38)
at internal/process/execution.js:77:19
at [eval]-wrapper:6:22
at evalScript (internal/process/execution.js:76:60) {
status: 128,
signal: null,
output: [ null, null, null ],
pid: 49804,
stdout: null,
stderr: null
}
Removing .git directory…

Success! Created myweb at E:\react_test\myweb
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 myweb
npm start

Happy hacking!

E:\react_test>cd myweb

E:\react_test\myweb>npm start

myweb@0.1.0 start E:\react_test\myweb
react-scripts start

Compiled successfully!

You can now view myweb in the browser.

Local: http://localhost:3000
On Your Network: http://192.168.137.163:3000

Note that the development build is not optimized.
To create a production build, use npm run build.

webpack compiled successfully

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值