Задать вопрос
@un1ted220

Npm ERR! code E400 npm ERR! 400 Bad Request ( The data is invalid. )?

Когда я устанавливаю любой пакет с npm пишет эту ошибку
D:\node>npm i nodemon
npm ERR! code E400
npm ERR! 400 Bad Request ( The data is invalid.  ) - GET https://registry.npmjs.org/nodemon


Вот log

0 verbose cli [
0 verbose cli   'C:\\ProgramData\\Applications\\nodejs\\node.exe',
0 verbose cli   'C:\\ProgramData\\Applications\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli   'i',
0 verbose cli   'nodemon'
0 verbose cli ]
1 info using npm@8.1.0
2 info using node@v16.13.0
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\ProgramData\Applications\nodejs\node_modules\npm\npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:D:\node\.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\ablyakimov\.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\ProgramData\Applications\nodejs\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 6ms
19 timing npm:load:configload Completed in 6ms
20 timing npm:load:setTitle Completed in 0ms
21 timing npm:load:setupLog Completed in 0ms
22 timing config:load:flatten Completed in 2ms
23 timing npm:load:cleanupLog Completed in 2ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 1ms
26 timing npm:load Completed in 12ms
27 timing arborist:ctor Completed in 2ms
28 timing arborist:ctor Completed in 0ms
29 timing idealTree:init Completed in 8ms
30 timing idealTree:userRequests Completed in 2ms
31 silly idealTree buildDeps
32 silly fetch manifest nodemon@*
33 http fetch GET 400 https://registry.npmjs.org/nodemon 35ms (cache skip)
34 silly placeDep ROOT nodemon@ OK for: node@1.0.0 want: *
35 timing idealTree:#root Completed in 41ms
36 timing idealTree:node_modules/nodemon Completed in 0ms
37 timing idealTree:buildDeps Completed in 41ms
38 timing idealTree:fixDepFlags Completed in 1ms
39 timing idealTree Completed in 52ms
40 timing command:install Completed in 62ms
41 verbose stack HttpErrorGeneral: 400 Bad Request ( The data is invalid.  ) - GET https://registry.npmjs.org/nodemon
41 verbose stack     at C:\ProgramData\Applications\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:95:15
41 verbose stack     at processTicksAndRejections (node:internal/process/task_queues:96:5)
41 verbose stack     at async Arborist.[nodeFromEdge] (C:\ProgramData\Applications\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1061:19)
41 verbose stack     at async Arborist.[buildDepStep] (C:\ProgramData\Applications\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:930:11)
41 verbose stack     at async Arborist.buildIdealTree (C:\ProgramData\Applications\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:216:7)
41 verbose stack     at async Promise.all (index 1)
41 verbose stack     at async Arborist.reify (C:\ProgramData\Applications\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:149:5)
41 verbose stack     at async Install.install (C:\ProgramData\Applications\nodejs\node_modules\npm\lib\install.js:170:5)
42 verbose statusCode 400
43 verbose pkgid nodemon@*
44 verbose cwd D:\node
45 verbose Windows_NT 10.0.19043
46 verbose argv "C:\\ProgramData\\Applications\\nodejs\\node.exe" "C:\\ProgramData\\Applications\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "nodemon"
47 verbose node v16.13.0
48 verbose npm  v8.1.0
49 error code E400
50 error 400 Bad Request ( The data is invalid.  ) - GET https://registry.npmjs.org/nodemon
51 verbose exit 1


Пробовал устанавливать не через установщик npm.
Компьютер рабочий
  • Вопрос задан
  • 862 просмотра
Подписаться 1 Средний Комментировать
Пригласить эксперта
Ответы на вопрос 1
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы