Senin, 20 Januari 2020

BOWER-install

 

https://www.osetc.com/en/how-to-install-bower-on-ubuntu-16-04-18-04-linux.html

Installing Nodejs And Npm


As Bower need to use Node.js and npm tools to manage all applications, you need to install both two packages on your Ubuntu system. Type the following command to install it:
$ sudo apt install npm
$ sudo apt install nodejs
Outputs:
devops@devops-osetc:~$ sudo apt install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libssl-doc
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
gyp javascript-common libc-ares2 libhttp-parser2.7.1 libjs-async
......
Need to get 9,782 kB/10.0 MB of archives.
After this operation, 42.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 gyp all 0.1+20150913git1f374df9-1ubuntu1 [265 kB]
Get:2 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 libjs-async all 0.8.0-3 [25.4 kB]
Get:3 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 libjs-node-uuid all 1.4.7-5 [11.5 kB]
......
Setting up node-form-data (0.1.0-1) ...
Setting up node-request (2.26.1-1) ...
Setting up node-minimatch (3.0.4-3) ...
Setting up node-normalize-package-data (2.3.5-2) ...
Setting up node-ansi-color-table (1.0.0-1) ...
Setting up node-npmlog (0.0.4-1) ...
Setting up node-glob (7.1.2-4) ...
Setting up node-rimraf (2.6.2-1) ...
Setting up node-read-package-json (1.2.4-1) ...
Setting up node-fstream (1.0.10-1) ...
Setting up node-fstream-ignore (0.0.6-2) ...
Setting up node-tar (2.2.1-1) ...
Setting up node-gyp (3.6.2-1ubuntu1) ...
Setting up npm (3.5.2-0ubuntu4) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
devops@devops-osetc:~$

devops@devops-osetc:~$ sudo apt install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (8.10.0~dfsg-2ubuntu0.4).
nodejs set to manually installed.
The following package was automatically installed and is no longer required:
libssl-doc
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Then you need to check if you have successfully installed NPM and node.js tools on your Ubuntu system with the following command:
$ npm --version
or
$ node --version
Outputs:
devops@devops-osetc:~$ npm --version
3.5.2
devops@devops-osetc:~$ node --version
v8.10.0

Installing Bower Using NPM


After installed NPM in the above step, you can try to install Bower with NPM tool on your system, just use the following command to install bower:
$ sudo npm install -g bower
After the installation process is completed, you need to check if the bower has installed successfully on your system with the following command:
$ bower --version
Outputs:
devops@devops-osetc:~$ node --version
1.8.2

Tidak ada komentar:

Posting Komentar