In your private npm modules add
"private": true
to your package.json
Then to reference the private module in another module, use this in your package.json
{
"name": "myapp",
"dependencies": {
"private-repo": "git+ssh://[email protected]:myaccount/myprivate.git#v1.0.0",
}
}
More Related Contents:
- Find the version of an installed npm package
- NodeJS require a global module/package
- How can I specify the required Node.js version in package.json?
- What is the difference between –save and –save-dev?
- Node package ( Grunt ) installed but not available
- How to clean node_modules folder of packages that are not in package.json?
- What is the –save option for npm install?
- How can I update NodeJS and NPM to their latest versions?
- Local dependency in package.json
- How to set environment variables from within package.json?
- NPM modules won’t install globally without sudo
- Why does npm install say I have unmet dependencies?
- Is there a way to get version from package.json in nodejs code?
- Specify path to node_modules in package.json
- Installing Node.js (and npm) on Windows 10
- npm install Error: rollbackFailedOptional
- error: This is probably not a problem with npm. There is likely additional logging output above
- Change node_modules location
- npm ERR! Error: connect ECONNREFUSED when trying to update the npm
- What is the recommended way to install Node.js, nvm and npm on MacOS X?
- How to deploy node app that uses grunt to heroku
- How to make the webpack dev server run on port 80 and on 0.0.0.0 to make it publicly accessible?
- DeprecationWarning: Buffer() is deprecated due to security and usability issues when I move my script to another server
- GYP ERR! build error. stack Error: ‘make’ failed with exit code 2
- What is the pwa-node type launch configuration on VSCode?
- npm: Why is a version “0.1” invalid?
- How to organise file structure of backend and frontend in MERN
- npm doesn’t work, get always this error -> Error: Cannot find module ‘are-we-there-yet’
- Can’t install any package with node npm
- What’s the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file?