@vasIvas

Почему неправильно устанавливается bower?

Установил nodejs как советовали в моей вчерашней теме (как указано ниже), но возникла другая проблема.
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
sudo apt-get install build-essential


Теперь у меня ен правильно устанавливается bower. Что я делаю -
sudo npm install --save-dev --global bower
cd Рабочий\ стол/
sudo mkdir bower-test
cd bower-test

затем
sudo bower init
вывод

bower ESUDO Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.

www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You can however run a command with sudo using --allow-root option

затем
bower init
вывод
Error: EACCES, permission denied '/home/ivan/.config/configstore/bower-github.yml'
You don't have access to this file.

at Object.fs.openSync (evalmachine.:439:18)
at Object.fs.readFileSync (evalmachine.:290:15)
at Object.create.all.get (/usr/lib/node_modules/bower/node_modules/configstore/index.js:34:29)
at Object.Configstore (/usr/lib/node_modules/bower/node_modules/configstore/index.js:27:44)
at readCachedConfig (/usr/lib/node_modules/bower/lib/config.js:19:23)
at defaultConfig (/usr/lib/node_modules/bower/lib/config.js:11:12)
at Object. (/usr/lib/node_modules/bower/lib/index.js:40:32)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)


В чем проблема, как её исправит?
  • Вопрос задан
  • 1216 просмотров
Пригласить эксперта
Ответы на вопрос 1
alexey-m-ukolov
@alexey-m-ukolov Куратор тега JavaScript
В чем проблема

Error: EACCES, permission denied '/home/ivan/.config/configstore/bower-github.yml'
You don't have access to this file.


как её исправит?
bower.io/#install-bower
Ответ написан
Ваш ответ на вопрос

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

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