git://github.com/user/project.git#commit-ish
{
"name": "my_package",
"description": "",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/ashleygwilliams/my_package.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/ashleygwilliams/my_package/issues"
},
"homepage": "https://github.com/ashleygwilliams/my_package"
}
D:\projects\app>npm init
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.
name: (app)
Set
> npm set init.author.email "email@epam.com"
> npm set init.author.name "Shukhratbek"
> npm set init.license "MIT"
Get
> npm get init.author.email
Delete
> npm config delete init.author.name
npm -h
npm help
npm install -h
npm help install
npm help uninstall
npm help prune
> npm help <command>
npm help-search remove
> npm help-search <command>
npm install (with no args, in package dir) npm install [<@scope>/]<name> npm install [<@scope>/]<name>@<tag> npm install [<@scope>/]<name>@<version> npm install [<@scope>/]<name>@<version range> npm install <tarball file> npm install <tarball url> npm install <folder>
-S|--save -D|--save-dev -O|--save-optional -E|--save-exact -B|--save-bundle
npm i <package> [options]
npm install sax --save
npm install githubname/reponame
npm install @myorg/privatepackage
npm install node-tap --save-dev
npm install dtrace-provider --save-optional
npm install readable-stream --save --save-exact
npm install ansi-regex --save --save-bundle
--dry-run
-f|--force
-g|--global
npm i <package> [options]
npm install sax --dry-run
npm install sax -f
npm install sax --force
npm install sax -g
npm install sax --global
> ls node_modules/
> npm list
> npm ls
> npm list --depth 1
> npm list --depth 0
> npm list --global true
> npm list --depth --long true
> npm list --depth --json true
> npm list --depth --dev true
> npm list --depth --prod true
> npm uninstall lodash
> npm rm lodash
> npm un lodash
> npm r lodash
> npm r lodash -g
> cat package.json
> npm uninstall lodash --save
> cat package.json
> npm update
> npm update lodash
http://registry.npmjs.org/<package>
http://npm.im/<package>
> npm search <package>
> npm prune
> npm prune <package>
> npm prune --production
> npm repo <package>
> npm i npm@latest -g
Username: shuhratbek
Password:
Email: shuhratbek.26@gmail.com