-
Notifications
You must be signed in to change notification settings - Fork 1
Usage
Meir Noordermeer edited this page May 2, 2017
·
5 revisions
Usage: ap-npm [options] [command]
Commands:
serve|s [options] serve ap-npm
set <prop> <value> sets default config property
init init a npm project using ap-npm config
Options:
-h, --help output usage information
(Note: above options can also be set in /src/config.js)
npm publish --registry=http://hostname:port`
Note:
npm publish @myco/myPackage
won't work as it will try to publish the package to https://registry.npmjs.org/
npm install @myco/myPackage
npm login --registry=http://hostname:port --scope=@myco
Note: npm login
is an alias for npm adduser
npm logout --scope=@myco
npm config set @myco:registry http://reg.example.com
"dependencies": {
"@myorg/mypackage": "^1.3.0"
}
require('@myorg/mypackage')