Last active
May 15, 2016 19:01
-
-
Save ngendlio/8e182911d15db231cd1cd5dc2609adb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install nodejs npm | |
// Ensuite pour que nodemon puisse marcher fo faire | |
// Car Ubuntu package nodejs provide a binary as a /usr/bin/nodejs, | |
/ not a /usr/bin/node, so most of cli tools can't find it. To solve the problem you need to make a symlink: | |
sudo ln -sT /usr/bin/nodejs /usr/bin/node | |
// si turencontre une erreur de type : | |
SyntaxError: Unexpected token | |
Redemarre le PC tout simplement | |
----------------PUG (old JADE)-------------- | |
npm install pug --save | |
---------------------------------*----------------------- | |
//To get POST parameters, we’ll need two the ExpressJS body-parser package. | |
npm install body-parser --save | |
--Then add | |
var bodyParser = require('body-parser'); | |
app.use(bodyParser.json()); // support json encoded bodies | |
app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies | |
--------------------------------------------------------------------------- | |
// pour le redémarage automatique du serveur, installer | |
npm install -g nodemon | |
//-------------------------------- | |
//FIN | |
// AJouter des modules | |
sudo npm install express | |
sudo npm install jade | |
sudo npm install stylus | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment