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

Как исправить ошибку npm?

Пытаюсь выполнить команду:
npm i -g npm-chech-updates

Но что то идет не так :(
Вот что выдает:

C:\OpenServer\domains\mysite.ru>npm i -g npm-chech-updates
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "-g" "npm-chech-updates"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2

npm ERR! Cannot read property 'path' of null
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!

npm ERR! Please include the following file with any support request:
npm ERR! C:\OpenServer\domains\mysite.ru\npm-debug.log

C:\OpenServer\domains\mysite.ru>

Вот содержимое npm-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 '-g',
1 verbose cli 'npm-chech-updates' ]
2 info using npm@4.1.2
3 info using node@v7.5.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData npm-chech-updates
8 silly fetchNamedPackageData npm-chech-updates
9 silly mapToRegistry name npm-chech-updates
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'npm-chech-updates',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'npm-chech-updates',
12 silly mapToRegistry name: 'npm-chech-updates',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/npm-chech-updates
14 verbose request uri https://registry.npmjs.org/npm-chech-updates
15 verbose request no auth needed
16 info attempt registry request try #1 at 23:24:56
17 verbose request id 2ddd607e4e1dcb0e
18 http request GET https://registry.npmjs.org/npm-chech-updates
19 http 404 https://registry.npmjs.org/npm-chech-updates
20 verbose headers { 'content-type': 'application/json',
20 verbose headers 'cache-control': 'max-age=0',
20 verbose headers 'content-length': '2',
20 verbose headers 'accept-ranges': 'bytes',
20 verbose headers date: 'Mon, 13 Feb 2017 18:25:01 GMT',
20 verbose headers via: '1.1 varnish',
20 verbose headers age: '0',
20 verbose headers connection: 'keep-alive',
20 verbose headers 'x-served-by': 'cache-bma7020-BMA',
20 verbose headers 'x-cache': 'MISS',
20 verbose headers 'x-cache-hits': '0',
20 verbose headers 'x-timer': 'S1487010300.628431,VS0,VE834',
20 verbose headers vary: 'Accept-Encoding' }
21 silly get cb [ 404,
21 silly get { 'content-type': 'application/json',
21 silly get 'cache-control': 'max-age=0',
21 silly get 'content-length': '2',
21 silly get 'accept-ranges': 'bytes',
21 silly get date: 'Mon, 13 Feb 2017 18:25:01 GMT',
21 silly get via: '1.1 varnish',
21 silly get age: '0',
21 silly get connection: 'keep-alive',
21 silly get 'x-served-by': 'cache-bma7020-BMA',
21 silly get 'x-cache': 'MISS',
21 silly get 'x-cache-hits': '0',
21 silly get 'x-timer': 'S1487010300.628431,VS0,VE834',
21 silly get vary: 'Accept-Encoding' } ]
22 silly fetchPackageMetaData Error: Registry returned 404 for GET on https://registry.npmjs.org/npm-chech-updates
22 silly fetchPackageMetaData at makeError (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:304:12)
22 silly fetchPackageMetaData at CachingRegistryClient. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:282:14)
22 silly fetchPackageMetaData at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:212:14)
22 silly fetchPackageMetaData at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:186:22)
22 silly fetchPackageMetaData at emitTwo (events.js:106:13)
22 silly fetchPackageMetaData at Request.emit (events.js:192:7)
22 silly fetchPackageMetaData at Request. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1081:10)
22 silly fetchPackageMetaData at emitOne (events.js:96:13)
22 silly fetchPackageMetaData at Request.emit (events.js:189:7)
22 silly fetchPackageMetaData at IncomingMessage. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1001:12)
22 silly fetchPackageMetaData error for npm-chech-updates { Error: Registry returned 404 for GET on https://registry.npmjs.org/npm-chech-updates
22 silly fetchPackageMetaData at makeError (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:304:12)
22 silly fetchPackageMetaData at CachingRegistryClient. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:282:14)
22 silly fetchPackageMetaData at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:212:14)
22 silly fetchPackageMetaData at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:186:22)
22 silly fetchPackageMetaData at emitTwo (events.js:106:13)
22 silly fetchPackageMetaData at Request.emit (events.js:192:7)
22 silly fetchPackageMetaData at Request. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1081:10)
22 silly fetchPackageMetaData at emitOne (events.js:96:13)
22 silly fetchPackageMetaData at Request.emit (events.js:189:7)
22 silly fetchPackageMetaData at IncomingMessage. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1001:12) pkgid: 'npm-chech-updates', statusCode: 404, code: 'E404' }
23 silly rollbackFailedOptional Starting
24 verbose stack TypeError: Cannot read property 'path' of null
24 verbose stack at Installer.rollbackFailedOptional (C:\Program Files\nodejs\node_modules\npm\lib\install.js:511:29)
24 verbose stack at Array. (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
24 verbose stack at LOOP (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
24 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:18:7
24 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\install.js:337:5
24 verbose stack at Array. (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
24 verbose stack at LOOP (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
24 verbose stack at chain (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:20:5)
24 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\install.js:294:5
24 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:16:22
25 verbose cwd C:\OpenServer\domains\mysite.ru
26 error Windows_NT 10.0.14393
27 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "-g" "npm-chech-updates"
28 error node v7.5.0
29 error npm v4.1.2
30 error Cannot read property 'path' of null
31 error If you need help, you may report this error at:
31 error
32 verbose exit [ 1, true ]


В чем ошибка, как её исправить?
Спасибо!
  • Вопрос задан
  • 1621 просмотр
Подписаться 1 Оценить Комментировать
Решения вопроса 1
bushido2014
@bushido2014
не правильно написали npm i -g npm-chech-updates
npm install -g npm-check-updates
попробуйте так
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

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

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