Nodejs: Difference between revisions
Jump to navigation
Jump to search
(→Tricks) |
|||
Line 25: | Line 25: | ||
===Update Version (package.json)=== | ===Update Version (package.json)=== | ||
<pre>npm-check-updates -u</pre> | <pre>npm-check-updates -u</pre> | ||
===Update Dependencies | ===Update Dependencies=== | ||
<pre>npm install</pre> | <pre>npm install</pre> | ||
===Stop Restart with nodemon==== | ===Stop Restart with nodemon==== | ||
<pre>nodemon</pre> | <pre>nodemon</pre> | ||
<pre>nodemon --debug</pre> | <pre>nodemon --debug</pre> |
Revision as of 13:13, 23 March 2015
Installation
Install Node
- Web site link [1]
- Download Tar "node-v0.10.35.tar.gz" (version number may be different
- untar tar -zxvf node-v0.10.35.tar.gz
- cd node-v0.10.35
- Run configure : ./configure
- Run make : make
- Run make with install : sudo make install
Install Express
- sudo npm install -g express-generator
First App
- Create your app directory mkdir myapp
- Go into directory : cd myapp
- Run express : express
- Run npm : npm install
- test App : npm start
- try http://localhost:3000
Tricks
Update Version (package.json)
npm-check-updates -u
Update Dependencies
npm install
Stop Restart with nodemon=
nodemon
nodemon --debug