Chernichko
@Chernichko
Учусь.

Почему не устанавливается npm?

Скачала проект из репозитория. Делаю npm install, выскакивает ошибка:

npm install
npm WARN npm npm does not support Node.js v10.15.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN tar write after end
npm WARN notice [SECURITY] webpack-dev-server has the following vulnerability: 1 high. Go here for more details: https://nodesecurity.io/advisories?search=webpack-dev-server&version=2.11.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
npm WARN tar write after end
npm WARN tar write after end
npm WARN tar write after end
npm WARN tar write after end
npm WARN tar write after end
npm WARN tar write after end
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/maria/.npm/_logs/2019-05-23T16_05_34_071Z-debug.log


При попытке обновить вот такое вот:

npm install npm@latest -g
npm WARN npm npm does not support Node.js v10.15.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN checkPermissions Missing write access to /usr/local/lib
npm ERR! path /usr/local/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib']
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, access \'/usr/local/lib\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib' }
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 (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/maria/.npm/_logs/2019-05-23T16_08_50_103Z-debug.log


В чем дело то?!
  • Вопрос задан
  • 5593 просмотра
Пригласить эксперта
Ответы на вопрос 4
nutkatuz
@nutkatuz
очень грубо отвечают про первую строку. что за люди. вообще-то, нужно удалить ноду с компа через программы и компоненты и скачать перечисленные в 4ой (!) строке версии -- максимум до 9ой! https://nodejs.org/download/release/v9.0.0/ тогда можно будет пользоваться этой версией нпм и обновиться до последней, удалив локальный npm, тогда уж и заново поставить последнюю ноду.
изначально я вообще думала что эту проблему можно решить, обновив нпм через yarn командой yarn add npm@latest -g, но это не сработало почему-то, версия осталась той же)
Ответ написан
RusTech
@RusTech
Первая же строка:
npm WARN npm npm does not support Node.js v10.15.2
Ответ написан
Jeer
@Jeer
уверенный пользователь
Привет, нашли решение проблемы?
У меня аналогичная, в проекте несколько разработчиков, один добавил пакет, у него завелось. У меня перестало собираться. Нашли различие в версии ноды, я поставил последнюю, такая ошибка началась. Поставил последнюю стабильную, аналогичная ошибка. Удалил/переустановил, ничего не помогает больше.
Чёртова нода
Ответ написан
Комментировать
r0n1x
@r0n1x
Помогу с html, css, js
npm cache clean -f
npm -g uninstall npm
npm -g i npm
Ответ написан
Ваш ответ на вопрос

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

Войти через центр авторизации
Похожие вопросы