Curriculum: Add explanation for npm init command with and without the -y flag (read all comments for direction)

Created on 22 Feb 2019  路  9Comments  路  Source: Techtonica/curriculum

To pre-populate the package.JSON with some basic information.

EASY gssoc19

Most helpful comment

@alodahl I would like to work on this issue under GSSoC 2019, can I?

All 9 comments

Context: npm init without the -y flag makes you enter a tiny command-line program that asks you for details for your package.json. We can skip those steps by using -y. (Users were getting confused and trying to type npm install --save express into the npm init prompt!)

Also add some info about what npm init is doing (which is just writing up a package.json for you)

Which topic outline do you think this would best fit into? @judytuna @oubawaleh

Perhaps as a note after the "use npm to create a package.json file" section of the node.js lab exercise part 2

https://github.com/Techtonica/curriculum/blob/master/node-js/node-lab-exercise-part-2.md#part-2---use-npm-to-create-a-packagejson-file

@oubawaleh I would like to work on this? Can I?

@yati1998 Thanks for offering, but you can only work on one issue at a time.

@alodahl I would like to work on this issue under GSSoC 2019, can I?

@alodahl Can I work on this issue?

Thanks anyway @Soumya0803 , please choose another issue 馃檪

Hey, Can I work on this issue?

Was this page helpful?
0 / 5 - 0 ratings