How it works...

When Node is installed on our system, npm comes bundled with it.

The npm executable is written in JavaScript and runs on Node.

The npm config command can be used to permanently alter settings. In our case, we changed the init.author.name setting so that npm init would reference it for the default during a module's initialization.

We can list all the current configuration settings with npm config ls.

Config Docs
Refer to https://docs.npmjs.com/misc/config for all possible npm configuration settings.

When we run npm init, the answers we supply are stored in an object, serialized as JSON and then saved to a newly created package.json file in the current directory.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.17.40