我们有一个使用 sinopia 托管的私有 npm 存储库,它具有基本的身份验证凭据。我们的应用程序使用私有仓库的 npm 包。我创建了身份验证令牌并尝试了它,但在该行出现错误RUN npm install utilities@0.1.9:
Run Code Online (Sandbox Code Playgroud)npm ERR! code E403 npm ERR! 403 Forbidden: utilities@0.1.9 npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-07-05T10_55_25_752Z-debug.log
而我的Dockerfile是:
npm ERR! code E403
npm ERR! 403 Forbidden: utilities@0.1.9
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-07-05T10_55_25_752Z-debug.log
Run Code Online (Sandbox Code Playgroud)
错误日志是:
Run Code Online (Sandbox Code Playgroud)11 verbose stack at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23) 11 verbose stack at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31) 11 verbose stack at …