https://github.com/logisticinfotech/testpackage-li-org
https://github.com/logisticinfotech/testpackage-li-org
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/logisticinfotech/testpackage-li-org
- Owner: logisticinfotech
- Created: 2018-12-24T13:26:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-24T13:50:36.000Z (about 7 years ago)
- Last Synced: 2024-04-24T20:03:14.156Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# testpackage
# Steps 1
$ npm init --scope=logisticinfotech
this will create package.json
# Step 2
create index.js file with following content.
exports.printMsg = function() {
console.log("This is a message from the demo package at LogisticInfotech");
};
# Step 3
Enable two factor authentication in npmjs account profile
Need to use google authenticator app in ios/android
# Step 4
$ npm adduser
# Step 5
make sure your package name is unique. Other wise it will give error like
You do not have permission to publish "testpackage". Are you logged in as the correct user? : testpackage
$ npm publish --access=public