-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
This is similar to issue #1937, which is supposed to be resolved, but I still have it.
npm publish fails to pick up publishConfig.registry from my package.json, yet it works fine if I provide it in the command line with npm publish --registry=https://gitlab.com/api/v4/projects/26587846/packages/npm/
I slimmed down my package.json to this, and I'm also providing the full logs on the failure / success cases.
Expected Behavior
No response
Steps To Reproduce
- package.json:
{
"name": "@ts.sch.gr/sch-webapps-test",
"publishConfig": {
"access": "public",
"@ts.sch.gr:registry": "https://gitlab.com/api/v4/projects/26587846/packages/npm/"
},
"version": "1.0.0"
}- Failed attempt:
alkisg@alkis:/home/Public/Development/git/ts.sch.gr/sch-webapps$ npm publish --loglevel=silly
npm verb cli [
npm verb cli '/usr/local/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'publish',
npm verb cli '--loglevel=silly'
npm verb cli ]
npm info using npm@7.18.1
npm info using node@v16.4.0
npm timing npm:load:whichnode Completed in 0ms
npm timing config:load:defaults Completed in 1ms
npm timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
npm timing config:load:builtin Completed in 0ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 0ms
npm timing config:load:file:/home/Public/Development/git/ts.sch.gr/sch-webapps/.npmrc Completed in 0ms
npm timing config:load:project Completed in 1ms
npm timing config:load:file:/home/alkisg/.npmrc Completed in 2ms
npm timing config:load:user Completed in 2ms
npm timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
npm timing config:load:global Completed in 0ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 8ms
npm timing npm:load:configload Completed in 9ms
npm timing npm:load:setTitle Completed in 0ms
npm timing npm:load:setupLog Completed in 1ms
npm timing npm:load:cleanupLog Completed in 2ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load:projectScope Completed in 0ms
npm timing npm:load Completed in 16ms
npm timing config:load:flatten Completed in 2ms
npm verb publish [ '.' ]
npm notice
npm notice 📦 @ts.sch.gr/sch-webapps-test@1.0.0
npm notice === Tarball Contents ===
npm notice 4.9kB README.md
npm notice 2.6kB index.js
npm notice 203B package.json
npm notice === Tarball Details ===
npm notice name: @ts.sch.gr/sch-webapps-test
npm notice version: 1.0.0
npm notice filename: @ts.sch.gr/sch-webapps-test-1.0.0.tgz
npm notice package size: 3.2 kB
npm notice unpacked size: 7.7 kB
npm notice shasum: 66b2fa154e2dcd57ee1b07958a6d6c211ee302df
npm notice integrity: sha512-gQm5iFvLu2YCT[...]vntzujy5smilA==
npm notice total files: 3
npm notice
npm timing command:publish Completed in 64ms
npm verb stack Error: This command requires you to be logged in.
npm verb stack at Publish.publish (/usr/local/lib/node_modules/npm/lib/publish.js:115:29)
npm verb cwd /home/Public/Development/git/ts.sch.gr/sch-webapps
npm verb Linux 5.4.0-80-generic
npm verb argv "/usr/local/bin/node" "/usr/local/bin/npm" "publish" "--loglevel=silly"
npm verb node v16.4.0
npm verb npm v7.18.1
npm ERR! code ENEEDAUTH
npm ERR! need auth This command requires you to be logged in.
npm ERR! need auth You need to authorize this machine using `npm adduser`
npm verb exit 1
npm timing npm Completed in 311ms
npm verb code 1
npm ERR! A complete log of this run can be found in:
npm ERR! /home/alkisg/.npm/_logs/2021-07-23T08_57_46_549Z-debug.log- Successful attempt:
alkisg@alkis:/home/Public/Development/git/ts.sch.gr/sch-webapps$ npm publish --registry=https://gitlab.com/api/v4/projects/26587846/packages/npm/ --loglevel=silly
npm verb cli [
npm verb cli '/usr/local/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'publish',
npm verb cli '--registry=https://gitlab.com/api/v4/projects/26587846/packages/npm/',
npm verb cli '--loglevel=silly'
npm verb cli ]
npm info using npm@7.18.1
npm info using node@v16.4.0
npm timing npm:load:whichnode Completed in 1ms
npm timing config:load:defaults Completed in 1ms
npm timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
npm timing config:load:builtin Completed in 0ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 1ms
npm timing config:load:file:/home/Public/Development/git/ts.sch.gr/sch-webapps/.npmrc Completed in 0ms
npm timing config:load:project Completed in 0ms
npm timing config:load:file:/home/alkisg/.npmrc Completed in 2ms
npm timing config:load:user Completed in 2ms
npm timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
npm timing config:load:global Completed in 0ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 9ms
npm timing npm:load:configload Completed in 9ms
npm timing npm:load:setTitle Completed in 0ms
npm timing npm:load:setupLog Completed in 1ms
npm timing npm:load:cleanupLog Completed in 2ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load:projectScope Completed in 1ms
npm timing npm:load Completed in 17ms
npm timing config:load:flatten Completed in 2ms
npm verb publish [ '.' ]
npm notice
npm notice 📦 @ts.sch.gr/sch-webapps-test@1.0.0
npm notice === Tarball Contents ===
npm notice 4.9kB README.md
npm notice 2.6kB index.js
npm notice 203B package.json
npm notice === Tarball Details ===
npm notice name: @ts.sch.gr/sch-webapps-test
npm notice version: 1.0.0
npm notice filename: @ts.sch.gr/sch-webapps-test-1.0.0.tgz
npm notice package size: 3.2 kB
npm notice unpacked size: 7.7 kB
npm notice shasum: 66b2fa154e2dcd57ee1b07958a6d6c211ee302df
npm notice integrity: sha512-gQm5iFvLu2YCT[...]vntzujy5smilA==
npm notice total files: 3
npm notice
+ @ts.sch.gr/sch-webapps-test@1.0.0
npm timing command:publish Completed in 669ms
npm verb exit 0
npm timing npm Completed in 823ms
npm info ok Environment
- OS: Ubuntu 20.04
- Node: v16.4.0
- npm: 7.18.1
pjroth, djbeadle, ravermeister, robtayl0r, fallemand and 8 more
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release