§2024-11-04
- Technologies Used in Address Book:
- MongoDB
- Express
- React JS
- Node JS
$ mkdir node_proj && cd $_
acmeuser@hc4Noble:~/node_proj$ npx create-react-app address-book
Need to install the following packages:
create-react-app@5.0.1
Ok to proceed? (y) y
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated uid-number@0.0.6: This package is no longer supported.
npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated fstream-ignore@1.0.5: This package is no longer supported.
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated fstream@1.0.12: This package is no longer supported.
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
Creating a new React app in /home/acmeuser/node_proj/address-book.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
added 1312 packages in 3m
259 packages are looking for funding
run `npm fund` for details
Initialized a git repository.
Installing template dependencies using npm...
added 46 packages, and changed 1 package in 34s
263 packages are looking for funding
run `npm fund` for details
Removing template package using npm...
removed 1 package, and audited 1358 packages in 24s
263 packages are looking for funding
run `npm fund` for details
8 vulnerabilities (2 moderate, 6 high)
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
Git commit not created Error: Command failed: git commit -m "Initialize project using Create React App"
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at tryGitCommit (/home/acmeuser/node_proj/address-book/node_modules/react-scripts/scripts/init.js:62:5)
at module.exports (/home/acmeuser/node_proj/address-book/node_modules/react-scripts/scripts/init.js:350:25)
at [eval]:3:14
at Script.runInThisContext (node:vm:122:12)
at Object.runInThisContext (node:vm:298:38)
at node:internal/process/execution:82:21
at [eval]-wrapper:6:24 {
status: 128,
signal: null,
output: [ null, null, null ],
pid: 57677,
stdout: null,
stderr: null
}
Removing .git directory...
Success! Created address-book at /home/acmeuser/node_proj/address-book
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 address-book
npm start
Happy hacking!