Thanks for your attention.I am a new user for NPM package.
Now,I have downloaded lots of NPM package from third party.I want to upload to private package registry.
I have defined some parameters in ~/.npmrc,such as:
registry=https://mypersonal.com/api/v4/projects/{projectID}/packages/npm/
strict-ssl=false
//mypersonal.com/api/v4/projects/{projectID}/packages/npm/:_authToken=${NPM_TOKEN}
But when i upload the NPM tgz,the package.json file is the default registry URL included in NPM tgz. So I have to unzip the NPM and delete the default registry package.json file, such as:
"publishConfig": {
"registry": "https://wombat-dressing-room.appspot.com"
}
Then I can use command:
npm publish
to upload the npm packages to my personally package registry successfully.
At present, I have to unzip all NPM packages and delete the default registry code block in package.json file.
Is there any easy way to publish the NPM package to my package registry without this delete action in package.json file?
Thanks a ton.