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
Last revisionBoth sides next revision
webdesign:html5-and-javascript [2018/04/24 16:45] – [Node.js] adminwebdesign:html5-and-javascript [2018/04/24 16:56] – [Node.js] admin
Line 48: Line 48:
   - Step3: Set the environment variable ~/.profile or ~/.bash_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.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1