after i type in npm init --scope=username, the computer prints out
"This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See npm help json for definitive documentation on these fields
and exactly what they do.
Use npm install <pkg> --save afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit."
what am i suppose to type? I tried npm help json but i get
Sorry, name can only contain URL-friendly characters.
pkg is the name of the package,
also, check your browser after entering npm help json.
i was directed to file:///C:/Program%20Files/nodejs/node_modules/npm/html/doc/files/package.json.html , a documentation page.
When you run npm init it creates a package.json file with basic info about your project.
You can just click âEnterâ to every request and donât type anything or you can run npm init -y and it will create a package.json file without asking you anything (you can afterwards edit that file manually).
Also what is the pkg in npm install pkg --save
pkg is the name of the package you want to install.
For example to install React you type:
NAME
package.json - Specifics of npmâs package.json handling
DESCRIPTION
This document is all you need to know about whatâs required in your package.json file. It must be actual JSON, not
just a JavaScript object literal.
A lot of the behavior described in this document is affected by the config settings described in npm help 7 npm-conâ
fig.
name
The most important things in your package.json are the name and version fields. Those are actually required, and
your package wonât install without them. The name and version together form an identifier that is assumed to be
Manual page package.json(5) line 1 (press h for help or q to quit)
I donât know what youâre saying about the browser part? I 'm doing this on nitrous.io