webdesign:html5-and-javascript
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
webdesign:html5-and-javascript [2016/09/22 00:32] – [Custom css with less file which don't change variables of bootstrap.less] admin | webdesign:html5-and-javascript [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 10: | Line 10: | ||
==== Node.js ==== | ==== Node.js ==== | ||
- | refer: https:// | + | refer: |
+ | * https:// | ||
+ | * tutorials: https:// | ||
Node.js® is a platform built on **Chrome' | Node.js® is a platform built on **Chrome' | ||
Line 21: | Line 23: | ||
</ | </ | ||
v4.2.6 | v4.2.6 | ||
+ | </ | ||
+ | Install nodejs from source on linux: | ||
+ | - Step1: Get nodejs source< | ||
+ | https:// | ||
+ | </ | ||
+ | - Step2: Install< | ||
+ | tar xzvf node-v* && cd node-v* | ||
+ | ./configure | ||
+ | make | ||
+ | make install | ||
+ | </ | ||
+ | - Error:< | ||
+ | WARNING: C++ compiler too old, need g++ 4.9.4 or clang++ 3.4.2 (CXX=g++) | ||
+ | </ | ||
+ | Install nodejs from linux binary: https:// | ||
+ | - Step1: Get linux binay< | ||
+ | wget https:// | ||
+ | </ | ||
+ | - Step2: Unzip linux binary to / | ||
+ | mkdir / | ||
+ | yum install xz | ||
+ | tar -xJvf node-v8.11.1-linux-x64.tar.xz -C / | ||
+ | </ | ||
+ | - Step3: Set the environment variable ~/.profile or ~/ | ||
+ | # Nodejs | ||
+ | export NODEJS_HOME=/ | ||
+ | export PATH=$NODEJS_HOME: | ||
+ | </ | ||
+ | - Step4: | ||
+ | .~/.profile | ||
+ | </ | ||
+ | - Step6: Check environment:< | ||
+ | echo $PATH | ||
+ | / | ||
+ | </ | ||
+ | - Step5: Test installation using< | ||
+ | node -v | ||
+ | npm version | ||
+ | </ | ||
+ | v8.11.1 | ||
+ | { npm: ' | ||
+ | ares: ' | ||
+ | cldr: ' | ||
+ | http_parser: | ||
+ | icu: ' | ||
+ | modules: ' | ||
+ | nghttp2: ' | ||
+ | node: ' | ||
+ | openssl: ' | ||
+ | tz: ' | ||
+ | unicode: ' | ||
+ | uv: ' | ||
+ | v8: ' | ||
+ | zlib: ' | ||
</ | </ | ||
==== npm(node package manager for javascript...) ==== | ==== npm(node package manager for javascript...) ==== | ||
Line 419: | Line 475: | ||
} | } | ||
</ | </ | ||
- | === Custom css with less file which don't change variables of bootstrap.less(Best Method) | + | === Custom css with less file which don't change variables of bootstrap.less === |
We **create the new less file** and using **less tool** to rebuild new less file | We **create the new less file** and using **less tool** to rebuild new less file | ||
- Step1: Create **style.less** which import **bootstrap** and other changes in **nav.less, header.less, | - Step1: Create **style.less** which import **bootstrap** and other changes in **nav.less, header.less, |
webdesign/html5-and-javascript.1474504324.txt.gz · Last modified: 2022/10/29 16:15 (external edit)