- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
从今天早上开始,我发现我无法再从某个范围安装任何 NPM 包(或任何具有依赖项的包)。例如,如果我输入 npm i webpack
我会收到以下错误...
npm ERR! code E401 npm ERR! 401 Unauthorized: @webassemblyjs/wasm-parser@1.7.11
npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\tempo_000\AppData\Roaming\npm-cache_logs\2018-11-28T11_54_44_456Z-debug.log
日志有以下有趣的部分...
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'i',
1 verbose cli 'webpack' ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose npm-session bda7db37888d1d27
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/webpack 16ms (from cache)
8 silly pacote range manifest for webpack@^4.11.1 fetched in 42ms
9 timing stage:loadCurrentTree Completed in 1037ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 4ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 332ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule webpack@4.26.1 checking installable status
17 http fetch GET 200 https://registry.npmjs.org/@webassemblyjs%2fast 45ms (from cache)
18 http fetch GET 200 https://registry.npmjs.org/acorn 46ms (from cache)
19 http fetch GET 200 https://registry.npmjs.org/acorn-dynamic-import 47ms (from cache)
20 http fetch GET 200 https://registry.npmjs.org/chrome-trace-event 49ms (from cache)
21 http fetch GET 200 https://registry.npmjs.org/ajv-keywords 49ms (from cache)
22 http fetch GET 200 https://registry.npmjs.org/ajv 49ms (from cache)
23 http fetch GET 200 https://registry.npmjs.org/enhanced-resolve 52ms (from cache)
24 silly pacote version manifest for @webassemblyjs/ast@1.7.11 fetched in 60ms
25 silly resolveWithNewModule @webassemblyjs/ast@1.7.11 checking installable status
26 silly pacote range manifest for acorn@^5.6.2 fetched in 60ms
27 silly resolveWithNewModule acorn@5.7.3 checking installable status
28 silly pacote range manifest for acorn-dynamic-import@^3.0.0 fetched in 62ms
29 silly resolveWithNewModule acorn-dynamic-import@3.0.0 checking installable status
30 silly pacote range manifest for chrome-trace-event@^1.0.0 fetched in 63ms
31 silly resolveWithNewModule chrome-trace-event@1.0.0 checking installable status
32 silly pacote range manifest for ajv-keywords@^3.1.0 fetched in 64ms
33 silly resolveWithNewModule ajv-keywords@3.2.0 checking installable status
34 silly pacote range manifest for ajv@^6.1.0 fetched in 65ms
35 silly resolveWithNewModule ajv@6.5.5 checking installable status
36 silly pacote range manifest for enhanced-resolve@^4.1.0 fetched in 66ms
37 silly resolveWithNewModule enhanced-resolve@4.1.0 checking installable status
38 http fetch GET 200 https://registry.npmjs.org/eslint-scope 18ms (from cache)
39 http fetch GET 200 https://registry.npmjs.org/json-parse-better-errors 18ms (from cache)
40 http fetch GET 200 https://registry.npmjs.org/loader-runner 17ms (from cache)
41 http fetch GET 200 https://registry.npmjs.org/memory-fs 17ms (from cache)
42 http fetch GET 200 https://registry.npmjs.org/loader-utils 17ms (from cache)
43 http fetch GET 200 https://registry.npmjs.org/micromatch 18ms (from cache)
44 http fetch GET 200 https://registry.npmjs.org/neo-async 17ms (from cache)
45 silly pacote range manifest for eslint-scope@^4.0.0 fetched in 27ms
46 silly resolveWithNewModule eslint-scope@4.0.0 checking installable status
47 silly pacote range manifest for json-parse-better-errors@^1.0.2 fetched in 33ms
48 silly resolveWithNewModule json-parse-better-errors@1.0.2 checking installable status
49 silly pacote range manifest for loader-runner@^2.3.0 fetched in 34ms
50 silly resolveWithNewModule loader-runner@2.3.1 checking installable status
51 silly pacote range manifest for memory-fs@~0.4.1 fetched in 34ms
52 silly resolveWithNewModule memory-fs@0.4.1 checking installable status
53 silly pacote range manifest for loader-utils@^1.1.0 fetched in 38ms
54 silly resolveWithNewModule loader-utils@1.1.0 checking installable status
55 silly pacote range manifest for micromatch@^3.1.8 fetched in 39ms
56 silly resolveWithNewModule micromatch@3.1.10 checking installable status
57 silly pacote range manifest for neo-async@^2.5.0 fetched in 39ms
58 silly resolveWithNewModule neo-async@2.6.0 checking installable status
59 http fetch GET 200 https://registry.npmjs.org/node-libs-browser 31ms (from cache)
60 http fetch GET 200 https://registry.npmjs.org/schema-utils 27ms (from cache)
61 http fetch GET 200 https://registry.npmjs.org/tapable 21ms (from cache)
62 http fetch GET 200 https://registry.npmjs.org/terser-webpack-plugin 22ms (from cache)
63 http fetch GET 200 https://registry.npmjs.org/webpack-sources 21ms (from cache)
64 http fetch GET 200 https://registry.npmjs.org/watchpack 21ms (from cache)
65 silly pacote range manifest for node-libs-browser@^2.0.0 fetched in 36ms
66 silly resolveWithNewModule node-libs-browser@2.1.0 checking installable status
67 silly pacote range manifest for tapable@^1.1.0 fetched in 26ms
68 silly resolveWithNewModule tapable@1.1.1 checking installable status
69 silly pacote range manifest for terser-webpack-plugin@^1.1.0 fetched in 28ms
70 silly resolveWithNewModule terser-webpack-plugin@1.1.0 checking installable status
71 silly pacote range manifest for schema-utils@^0.4.4 fetched in 36ms
72 silly resolveWithNewModule schema-utils@0.4.7 checking installable status
73 silly pacote range manifest for webpack-sources@^1.3.0 fetched in 30ms
74 silly resolveWithNewModule webpack-sources@1.3.0 checking installable status
75 silly pacote range manifest for watchpack@^1.5.0 fetched in 31ms
76 silly resolveWithNewModule watchpack@1.6.0 checking installable status
77 http fetch GET 401 https://registry.npmjs.org/@webassemblyjs%2fwasm-parser 147ms
78 silly fetchPackageMetaData error for @webassemblyjs/wasm-parser@1.7.11 401 Unauthorized: @webassemblyjs/wasm-parser@1.7.11
79 http fetch GET 401 https://registry.npmjs.org/@webassemblyjs%2fhelper-module-context 156ms
80 silly fetchPackageMetaData error for @webassemblyjs/helper-module-context@1.7.11 401 Unauthorized: @webassemblyjs/helper-module-context@1.7.11
81 http fetch GET 304 https://registry.npmjs.org/@webassemblyjs%2fwasm-edit 465ms (from cache)
82 silly pacote version manifest for @webassemblyjs/wasm-edit@1.7.11 fetched in 471ms
83 silly resolveWithNewModule @webassemblyjs/wasm-edit@1.7.11 checking installable status
84 timing stage:rollbackFailedOptional Completed in 1ms
85 timing stage:runTopLevelLifecycles Completed in 1867ms
如果我运行npm config list
来检查注册表,则不存在本地或非标准配置...
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.4.1 node/v8.12.0 win32 x64"
; userconfig C:\Users\tempo_000\.npmrc
email = "keith@ministryotech.co.uk"
; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Development\Training\Base Stacks\vanilla-scss
; HOME = C:\Users\tempo_000
; "npm config ls -l" to show all defaults.
昨天工作正常,我已经测试过,但它不适用于 3 个不同的项目。
我安装了 nvm,并在 Node 8.12 和 10.11 下尝试了相同的操作,并得到了相同的结果。
最佳答案
这看起来像是 NPM 中的一个错误 - 刚刚记录
https://npm.community/t/can-t-install-scoped-packages-e401-unauthorized/3631/10
关于node.js - 无法在某个范围内安装 NPM 包,或者无法在范围内安装 NPM 包(或者看起来像这样),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53519042/
#include #include #include using namespace std::chrono; int main(int arc, char* argv[]) { con
我是 opencv 的新手。当我将 sRGB png 提供给它时,我发现以下代码交换了红色和蓝色 channel 。我应该责怪哪个函数,imread 还是 fromarray? 最佳答案 是的,O
我正在使用以下代码,它缩小了每一行,并且由于某种原因整个用户界面也丢失了。我该如何解决?
它是关于以下设置的:Linux 机器、bash、adb、带有 Busybox 的嵌入式 Linux 目标系统。对于目标系统,以下适用: adb shell echo $SHELL /bin/sh ad
当我在 Android Studio 上创建一个空 fragment 时,它会生成以下代码: /** * A simple {@link Fragment} subclass. * Activit
我正在尝试从 Meteor 应用程序的服务器端发布用户的 Facebook 提要: result = Meteor.http.call 'POST', "https://graph.faceb
目前我有两个不同的查询,它们返回完全相同的结果,但是,更改从中过滤结果的参数会使它们以非常不同的方式运行。 搜索 cartography 时的结果 查询 #1: 22 行/~860 毫秒; SELEC
我已经创建了结构: typedef struct { short s; int i; struct Ss { short s; }; } S;
我想在 Java 中打印反斜杠 t。但每当我尝试时,它实际上都将它作为\t 运算符。双反斜杠不起作用。我该怎么做。 最佳答案 例如通过添加另一个反斜杠来转义反斜杠 System.out.println
我想弄清楚为什么 UIActivityViewController 发送一个稍微转换过的字符串来分享给邮件和微信。 这是我的代码: let activityViewController = UIAct
创建标准 SQLite 游标后,我将使用以下方法遍历条目: while (cursor.moveToNext()) { } 所有行都被正确处理。我读过的所有文档都表明您需要发出 moveToFirst
我正在尝试创建一个基本论坛,但在 SQL 中仅打印一行时遇到问题。这是我的 PHP: {$title}"; } } else { print "failed to reach post
我的新 div 元素 ( ) 似乎隐藏在图像后面。我键入的任何内容都显示在图像后面。我想在背景图片之后继续工作。 这是我的代码: DISPLAY
UPD。一行代码解决了问题:.lean() axplanation here 我在 Model.find(...blablabla : [ {"_id":"578763de6e8e0542195ef4
我在 Ubuntu 16.04 中安装了 Tomcat 8.0.45。我使用 let's encrypt 生成的证书启用了 HTTPS 连接器。它就像一个魅力。但是今天Tomcat无法启动HTTPS连
今天,我在一台全新安装了 Windows 7 Ultimate 64 位的新笔记本电脑上安装了 Visual Studio 2010 Professional。我非常习惯于 Visual Studio
根据 Oracle,我应该能够将 .intValue() 和 .compareTo() 之类的方法应用于 double ,但是当我编写 dbl.toString( ) 例如,在 NetBeans 中,
正在为应用程序开发一些拖放功能,虽然可以使用“重影图像”来完成很多事情,将毒品从一个地方转移到另一个地方,但它们看起来总是有点“褪色” - 因此得名鬼影。是否有可能使这些具有与原始颜色相同的深度?谢谢
我是这方面的新手,很抱歉犯了一些愚蠢的错误。快乐学习。每当我使用 URL : localhost:3000/posts/whatever 时,我都会收到无法获取错误。在你问之前,是的,那是在我将内容放
背景 这自然是合法的: let closure: (Int, Int) -> () = { print($0 + $1) } closure(1, 2) // 3 鉴于,自进化提案实现以来 SE-01
我是一名优秀的程序员,十分优秀!