npm - npm 详细堆栈错误:无法验证,需要:基本领域 =“https://npm.fontawesome.com/”,服务 =“npm.fontawesome.com”
问题描述
我试图找到这个问题的根源,但我应该先说我也不知道我在做什么。
NPM 给了我一个错误回复:我的登录名和密码... a) 所以我更改了这些,注销并重新登录
我在我的代码编辑器中打开了错误日志并逐行查看,我点击了错误日志给我一个选项的每个链接。我结束了... b) 更新 package-lock json 文件
c) 创建了一个 .nprmc 文件,尽管它是空白的,但日志很高兴它在那里
我已经包含了来自 VCS 的错误日志。
我愿意接受建议
0 verbose cli '/usr/local/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'install',
0 verbose cli '--save',
0 verbose cli '@fortawesome/react-fontawesome'
0 verbose cli ]
1 info using npm@7.6.0
2 info using node@v15.11.0
3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
5 timing config:load:builtin Completed in 0ms
6 timing config:load:cli Completed in 3ms
7 timing config:load:env Completed in 0ms
8 timing config:load:file:/Users/ju*****ck/Desktop/My-Portfolio/.npmrc Completed in 1ms
9 timing config:load:project Completed in 2ms
10 timing config:load:file:/Users/ju*****ck/.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 1ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 10ms
19 verbose npm-session e7e1a0fe1bcee18a
20 timing npm:load Completed in 38ms
21 timing arborist:ctor Completed in 0ms
22 timing idealTree:init Completed in 1189ms
23 timing idealTree:userRequests Completed in 4ms
24 silly idealTree buildDeps
25 silly fetch manifest @fortawesome/react-fontawesome@*
26 timing arborist:ctor Completed in 0ms
27 http fetch GET 401 https://npm.fontawesome.com/@fortawesome%2freact-fontawesome 1038ms
28 silly placeDep ROOT @fortawesome/react-fontawesome@ OK for: my-portfolio@0.1.0 want: *
29 timing idealTree:#root Completed in 1047ms
30 timing idealTree:node_modules/@fortawesome/react-fontawesome Completed in 0ms
31 timing idealTree:buildDeps Completed in 1049ms
32 timing idealTree:fixDepFlags Completed in 32ms
33 timing idealTree Completed in 2276ms
34 timing command:install Completed in 2295ms
35 verbose stack Error: Unable to authenticate, need: Basic realm="https://npm.fontawesome.com/",service="npm.fontawesome.com"
35 verbose stack at /usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:113:17
35 verbose stack at processTicksAndRejections (node:internal/process/task_queues:94:5)
35 verbose stack at async Arborist.[nodeFromEdge] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:888:19)
35 verbose stack at async Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:836:11)
35 verbose stack at async Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:209:7)
35 verbose stack at async Promise.all (index 1)
35 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:130:5)
35 verbose stack at async install (/usr/local/lib/node_modules/npm/lib/install.js:38:3)
36 verbose statusCode 401
37 verbose pkgid @fortawesome/react-fontawesome@*
38 verbose cwd /Users/jus*****ck/Desktop/My-Portfolio
39 verbose Darwin 20.3.0
40 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "@fortawesome/react-fontawesome"
41 verbose node v15.11.0
42 verbose npm v7.6.0
43 error code E401
44 error Incorrect or missing password.
45 error If you were trying to login, change your password, create an
45 error authentication token or enable two-factor authentication then
45 error that means you likely typed your password in incorrectly.
45 error Please try again, or recover your password at:
45 error https://www.npmjs.com/forgot
45 error
45 error If you were doing some other operation then your saved credentials are
45 error probably out of date. To correct this please try logging in again with:
45 error npm login
46 verbose exit 1
解决方案
推荐阅读
- regex - 如何在表格 HTML 标记之间查找特定的 RegEx
- java - 如何在桶排序中动态增加arraylist的大小?
- php - 如何在 Phalcon 中更新原始 SQL 后获取结果集或受影响的行
- python - Python中增加整数序列的快速增量编码
- java - 在spring boot中实现redis缓存(使用redis作为持久存储)审计的更好方法是什么?
- python - 在 docker 中使用烧瓶运行 python 返回 ModuleNotFoundError: No module named 'flask'
- c - 使用矩阵进行二分搜索
- python - Django 表单向导:在同一表单上创建“添加另一条记录”按钮
- python - 用python从rtf中提取超链接
- java - 如何获取设备访问令牌并执行多个 HTTP POST 请求