Installing / using Bower on Uberspace using NPM

Hi, I use uberspace and there is an installed ghost installed. Ghost uses npm.

If I try:

npm install -g bower

He does not install it and throws a lot of messages about erros, which makes sense because the server is shared among many users. sudo npm install -g bower Tells me that he does not know the conversation

If I install it locally using

npm install bower

It sets it to .. / node_modules. But using, for example,

bower install angular-mailchimp

Throws an error: - bash: bower: command not found

How do I run it?

+4
source share
1 answer

Bower , .

npm install -g --prefix=$HOME bower
+11

Source: https://habr.com/ru/post/1547877/


All Articles