при установке чего-либо с npm (например, npm i json-stream
)
я получаю следующую ошибку:
npm ERR! code EACCES
npm ERR! errno EACCES
npm ERR! FetchError: request to https://registry.npmjs.org/json-stream failed, reason: connect EACCES 104.16.25.35:443 - Local (0.0.0.0:0)
npm ERR! at ClientRequest.<anonymous> (/Users/maxfowler/.nvm/versions/node/v12.16.3/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:310:20)
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:426:9)
npm ERR! at TLSSocket.emit (events.js:310:20)
npm ERR! at emitErrorNT (internal/streams/destroy.js:92:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:84:21)
npm ERR! FetchError: request to https://registry.npmjs.org/json-stream failed, reason: connect EACCES 104.16.25.35:443 - Local (0.0.0.0:0)
npm ERR! at ClientRequest.<anonymous> (/Users/maxfowler/.nvm/versions/node/v12.16.3/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:310:20)
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:426:9)
npm ERR! at TLSSocket.emit (events.js:310:20)
npm ERR! at emitErrorNT (internal/streams/destroy.js:92:8)
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:84:21) {
npm ERR! type: 'system',
npm ERR! errno: 'EACCES',
npm ERR! code: 'EACCES'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/maxfowler/.npm/_logs/2020-05-04T10_18_22_396Z-debug.log
Я использую nvm на ma c ОС 10.14 , Я попытался запустить команду как sudo и в разных рабочих каталогах. Любые идеи?
Я также пытался ping 104.16.25.35
(который работает) и ping 104.16.25.35:443
, который возвращает ping: cannot resolve 104.16.25.35:443: Unknown host