Skip to content

Mushu-Tutorials/tuto-npmjs-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Host packages on npmjs.org

Here are steps to host package for a user (for an organization please refer to the link documentation ahead):

npm -v

cd tuto-npmjs-packages

# Create .gitignore file
echo '# NPM packages
node_modules/
' > .gitignore

npm login
npm whoami
# npm init --scope=@my-username
npm init --scope=@mushuledragon

# Test the package before publishing
npm install my-package

# Publish to npmjs.org
## Move to the root directory package
cd /path/to/package
npm publish --access public

About

Tutorial to create and push your oun library on npm.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published