NPM Handson
NPM Handson
npm init
npm_package
// comment (after this press enter multiple times till the line "is it ok?(yes)"
give yes and press enter)
npm install react
npm install [email protected] --save
npm install redux@4 --save
npm install --save-dev mocha
npm install eslint@6 --save-dev
//comment (run the test)
npm-2
npm init
npm_commands
//comment(after this press enter multiple times till the line "is it ok?(yes)"
give yes and press enter)
m
vi index.js
er as
co
//comment (you are inside index.js press (i) and enter the commands
eH w
[var myVar="node package manager".toUpperCase();
console.log(myVar);]
o.
after entering the above commands press esc ,then (:),then (wq))
rs e
ou urc
vi package.json
//comment (then press (i) and go to tests line press enter and give ',' at end
of the test line and give commands
o
"build":"node index.js"]
v i y re
This study source was downloaded by 100000832806195 from CourseHero.com on 11-03-2021 02:55:33 GMT -05:00
https://www.coursehero.com/file/85760640/npm-handsontxt/
Powered by TCPDF (www.tcpdf.org)