Node and NPM basics Flashcards

1
Q

run app.js with node

A

node app.js

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you pass variables to file in node

A

> node app.js var1 var2

process. argv[2]
process. argv[3]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Install npm module

A

> npm install package_name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

create package.json

A

> npm init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly