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:43] – [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, add below to the end<code bash>+  - Step3: Set the environment variable ~/.profile or ~/.bash_profile, add below to the end<code bash>
 # Nodejs # Nodejs
-export NODEJS_HOME=/usr/local/nodejs/node-v8.9.4/bin+export NODEJS_HOME=/usr/local/nodejs/node-v8.11.1/bin
 export PATH=$NODEJS_HOME:$PATH export PATH=$NODEJS_HOME:$PATH
 </code> </code>
   - Step4:Refresh profile<code bash>   - Step4:Refresh profile<code bash>
-~/.profile+.~/.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> </code>
   - Step5: Test installation using<code bash>   - Step5: Test installation using<code bash>
 node -v 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> </code>
- 
-$ npm version 
 ==== npm(node package manager for javascript...) ==== ==== npm(node package manager for javascript...) ====
 refer:  refer: 
webdesign/html5-and-javascript.1524588218.txt.gz · Last modified: 2022/10/29 16:15 (external edit)