From the NPM docs on package.json
:
private
If you set
"private": true
in your package.json, then npm will refuse to publish it.This is a way to prevent accidental publication of private repositories.
More Related Contents:
- What’s the difference between tilde(~) and caret(^) in package.json?
- What’s the difference between dependencies, devDependencies and peerDependencies in npm package.json file?
- How to set environment variables from within package.json?
- npm install private github repositories by dependency in package.json
- Is there a way to get version from package.json in nodejs code?
- How to use private Github repo as npm dependency
- How to use environment variables in package.json
- How do I fix a vulnerable npm package in my package-lock.json that isn’t listed in the package.json?
- Running ‘npm audit fix –force’ downgrades react-scripts
- How to set env var for .npmrc use
- What’s the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file?
- Invalid options object. Dev Server has been initialized using an options object that does not match the API schema
- Get Download URL from file uploaded with Cloud Functions for Firebase
- What is an example of the simplest possible Socket.io example?
- How to install a node.js module without using npm?
- Get all directories within directory nodejs
- When to use next() and return next() in Node.js
- passport’s req.isAuthenticated always returning false, even when I hardcode done(null, true)
- req.query and req.param in ExpressJS
- (node:3341) DeprecationWarning: Mongoose: mpromise
- Mongoose deleting (pull) a document within an array, does not work with ObjectID
- nodeJS max header size in http.request
- NodeJS : How to debug “EventEmitter memory leak detected. 11 listeners added”
- Loop through JSON in EJS
- What is Express.js? [closed]
- nvm is not compatible with the npm config “prefix” option:
- Can’t install any packages in Node.js using “npm install”
- /lib64/libc.so.6: version `GLIBC_2.14′ not found. Why am I getting this error?
- What is index.js used for in node.js projects?
- Mongoose: extending schemas