npm
json-server --watch db.json
Yucky Yak
json-server --watch db.json
npm install -g json-server
Node Package Manager
// npm install inquirer(Gitbash)
// outline
var inquirer = require('inquirer');
inquirer
.prompt([
/* Pass your questions in here */
])
.then((answers) => {
// Use user feedback for... whatever!!
})
.catch((error) => {
if (error.isTtyError) {
// Prompt couldn't be rendered in the current environment
} else {
// Something else went wrong
}
});
:remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length] ":referrer" ":user-agent"
//npm.pkg.github.com/:_authToken=TOKEN
npm is a package manager for the JavaScript programming language
maintained by npm, Inc
yarn add @react-native-community/netinfo
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 <alias>@npm:<name>npm install <git-host>:<git-user>/<repo-name>npm install <git repo url>npm install <tarball file>npm install <tarball url>npm install <folder>aliases: npm i, npm addcommon options: [-P|--save-prod|-D|--save-dev|-O|--save-optional|--save-peer] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]
npm install - Install all plugins and dependencies, this step is mandatory.
npm run dev - Start it in Development mode, be aware this mode is only for developing, it can take a while before starting, also this mode include hot reloading and other cool stuff.
Or for production mode:
npm install - Install all plugins and dependencies, this step is mandatory.
npm run build - This step is mandatory before starting in production mode.
npm start - Start in production mode.