Установка npm не работает при ошибках угловых метаний - PullRequest
0 голосов
/ 01 октября 2019

У меня есть проект, в котором я пытаюсь выполнить npm i, который не работает, а для других людей он работает в течение одного выстрела ... Я проверил все версии узлов угловых выпячиваний. Я не понимаю, чего мне не хватает, или моегоLap Desnt поддерживает ?? не знаю, пожалуйста, помогите мне Привет Все, что я пытался решить эту проблему из немногих, я почти перепробовал все способы решения, но не смог .. Пожалуйста, помогите мне.

В первый раз, когда npm устанавливает приведенную ниже ошибку

npm install
npm WARN tarball tarball data for typescript@2.9.2 (sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==) seems to be corrupted. Trying one more time.
npm ERR! path C:\Desktop\Routing\noticeperiod-dev-frontend-master\noticeperiod-dev-frontend-master\node_modules\.staging\typescript-2f0799cb\lib\it\diagnosticMessages.generated.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\kishan babu\Desktop\Routing\noticeperiod-dev-frontend-master\noticeperiod-dev-frontend-master\node_modules\.staging\typescript-2f0799cb\lib\it\diagnosticMessages.generated.json'
npm ERR!  { [Error: EPERM: operation not permitted, unlink 'C:\Users\kishan babu\Desktop\Routing\noticeperiod-dev-frontend-master\noticeperiod-dev-frontend-master\node_modules\.staging\typescript-2f0799cb\lib\it\diagnosticMessages.generated.json']
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, unlink 'C:\Users\kishan babu\Desktop\Routing\noticeperiod-dev-frontend-master\noticeperiod-dev-frontend-master\node_modules\.staging\typescript-2f0799cb\lib\it\diagnosticMessages.generated.json'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'unlink',
npm ERR!      path:
npm ERR!       'C:\\Users\\Desktop\\Routing\\noticeperiod-dev-frontend-master\\noticeperiod-dev-frontend-master\\node_modules\\.staging\\typescript-2f0799cb\\lib\\it\\diagnosticMessages.generated.json' },
npm ERR!   stack:
npm ERR!    'Error: EPERM: operation not permitted, unlink \'C:\\Users\\Desktop\\Routing\\noticeperiod-dev-frontend-master\\noticeperiod-dev-frontend-master\\node_modules\\.staging\\typescript-2f0799cb\\lib\\it\\diagnosticMessages.generated.json\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path:
npm ERR!    'C:\\Users\\Desktop\\Routing\\noticeperiod-dev-frontend-master\\noticeperiod-dev-frontend-master\\node_modules\\.staging\\typescript-2f0799cb\\lib\\it\\diagnosticMessages.generated.json',
npm ERR!   parent: '@angular-devkit/build-optimizer' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
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 (though this is not recommended).
npm WARN registry Unexpected warning for http://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to http://registry.npmjs.org/json-schema-traverse failed, reason: connect ETIMEDOUT 104.16.19.35:80
npm WARN registry Using stale data from http://registry.npmjs.org/ due to a request error during revalidation.

Кто-нибудь сталкивался с этой проблемой .. пожалуйста ..............

Ответы [ 4 ]

0 голосов
/ 02 октября 2019

терминал должен быть открыт как администратор, он будет отлично работать

0 голосов
/ 01 октября 2019

Ошибка: EPERM - указывает на недостаточные разрешения.

Попробуйте исправить это, поскольку NPM не может использовать целевую папку.

0 голосов
/ 02 октября 2019

пожалуйста, проверьте проект вашей папки, выполняя npm

, пожалуйста попробуйте на другом диске

или

дать всем доступ к этой папке.

0 голосов
/ 01 октября 2019

В один выстрел это не удастся просто установить ваши зависимости один за другим

запустить

npm i "typescript@2.9.2" или npm i typescript

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...