小编Gau*_*uja的帖子

NPM ERR 代码 E401:无法验证,需要:承载授权

我从 GitHub 下载了一个 NodeJS 应用程序,在执行 npm install 时遇到以下错误。

npm ERR! code E401
npm ERR! Unable to authenticate, need: Bearer authorization_uri=https://login.windows.net/c1156c2f-a3bb-4fc4-ac07-3eab96da8d10, Basic realm="https://pkgsprodeus21.pkgs.visualstudio.com/", TFS-Federated
Run Code Online (Sandbox Code Playgroud)

我的 Node 版本是 6.13.1,NPM 版本是 6.13.4 以下是 package.json 文件的内容:

{
  "name": "DemoApp",
  "version": "1.0.0",
  "description": "A social oasis for lovers of pizza.",
  "repository": "****",
  "main": "index.js",
  "scripts": {
    "start": "node index.js"
  },
  "author": "****",
  "license": "MIT",
  "dependencies": {
    "@hapi/boom": "7.4.2",
    "@hapi/catbox": "10.2.1",
    "@hapi/catbox-redis": "5.0.2",
    "@hapi/cookie": "10.1.0",
    "@hapi/good": "8.2.0",
    "@hapi/good-squeeze": "5.2.0",
    "@hapi/hapi": "18.3.1",
    "@hapi/inert": "5.2.1",
    "@hapi/joi": "15.1.0",
    "@hapi/vision": …
Run Code Online (Sandbox Code Playgroud)

node.js npm npm-install

23
推荐指数
7
解决办法
5万
查看次数

标签 统计

node.js ×1

npm ×1

npm-install ×1