User Tools

Site Tools


webdesign:html5-and-javascript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
webdesign:html5-and-javascript [2018/04/24 16:40] – [Node.js] adminwebdesign:html5-and-javascript [2022/10/29 16:15] (current) – external edit 127.0.0.1
Line 46: Line 46:
 tar -xJvf node-v8.11.1-linux-x64.tar.xz -C /usr/local/nodejs tar -xJvf node-v8.11.1-linux-x64.tar.xz -C /usr/local/nodejs
 </code> </code>
-  - +  - Step3: Set the environment variable ~/.profile or ~/.bash_profile, add below to the end<code bash> 
 +# Nodejs 
 +export NODEJS_HOME=/usr/local/nodejs/node-v8.11.1/bin 
 +export PATH=$NODEJS_HOME:$PATH 
 +</code> 
 +  - Step4:Refresh profile<code bash> 
 +.~/.profile 
 +</code> 
 +  - Step6: Check environment:<code bash> 
 +echo $PATH 
 +/usr/local/nodejs/node-v8.11.1/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 
 +</code> 
 +  - Step5: Test installation using<code bash> 
 +node -v 
 +npm version 
 +</code>output:<code> 
 +v8.11.1 
 +{ npm: '5.6.0', 
 +  ares: '1.10.1-DEV', 
 +  cldr: '32.0', 
 +  http_parser: '2.8.0', 
 +  icu: '60.1', 
 +  modules: '57', 
 +  nghttp2: '1.25.0', 
 +  node: '8.11.1', 
 +  openssl: '1.0.2o', 
 +  tz: '2017c', 
 +  unicode: '10.0', 
 +  uv: '1.19.1', 
 +  v8: '6.2.414.50', 
 +  zlib: '1.2.11'
 +</code>
 ==== npm(node package manager for javascript...) ==== ==== npm(node package manager for javascript...) ====
 refer:  refer: 
webdesign/html5-and-javascript.1524588014.txt.gz · Last modified: 2022/10/29 16:15 (external edit)