You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shrinkpack can download packages from a private registry, where the registry has already been authenticated against using npm login.
Actual behaviour
Downloads fail with a 401 (Unauthorized) error.
Steps to reproduce
Have a private NPM registry
Have a package from your private NPM registry in your package.json / npm-shrinkwrap.json
Run shrinkpack.
Software versions used
OS : OS X 10.11.5
node.js : 4.4.4
npm : 3.10.2
shrinkpack : 0.12.5
Log output when running shrinkpack
i 1 dependencies in npm-shrinkwrap.json
i 0 need removing from ./node_shrinkwrap
i 1 need adding to ./node_shrinkwrap
i 0 are in your npm cache
i 1 need downloading
i 0 have a missing "resolved" property
↓ @atlassian/[email protected] from https://npm-private.atlassian.io/@atlassian%2ffunctional/-/@atlassian%2ffunctional-0.3.0.tgz
! failed to download @atlassian/[email protected]
! Please raise an issue at https://github.com/JamieMason/shrinkpack/issues
Error: Command failed: /bin/sh -c npm cache add https://npm-private.atlassian.io/@atlassian%2ffunctional/-/@atlassian%2ffunctional-0.3.0.tgz
npm ERR! fetch failed https://npm-private.atlassian.io/@atlassian%2ffunctional/-/@atlassian%2ffunctional-0.3.0.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 401
npm ERR! fetch failed https://npm-private.atlassian.io/@atlassian%2ffunctional/-/@atlassian%2ffunctional-0.3.0.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 401
npm ERR! fetch failed https://npm-private.atlassian.io/@atlassian%2ffunctional/-/@atlassian%2ffunctional-0.3.0.tgz
npm ERR! Darwin 15.5.0
npm ERR! argv "/Users/mszczepanski/.nvm/versions/node/v4.4.4/bin/node" "/Users/mszczepanski/.nvm/versions/node/v4.4.4/bin/npm" "cache" "add" "https://npm-private.atlassian.io/@atlassian%2ffunctional/-/@atlassian%2ffunctional-0.3.0.tgz"
npm ERR! node v4.4.4
npm ERR! npm v3.10.2
npm ERR! fetch failed with status code 401
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /private/tmp/repro/npm-debug.log
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:477:12)
Contents of your npm-shrinkwrap.json or package.json
Expected behaviour
Shrinkpack can download packages from a private registry, where the registry has already been authenticated against using
npm login
.Actual behaviour
Downloads fail with a 401 (Unauthorized) error.
Steps to reproduce
package.json
/npm-shrinkwrap.json
shrinkpack
.Software versions used
Log output when running shrinkpack
Contents of your npm-shrinkwrap.json or package.json
The text was updated successfully, but these errors were encountered: