//Download
cd ~/Downloads
wget https://nodejs.org/dist/v4.4.5/node-v4.4.5-linux-x64.tar.xz
//Install
cd /usr/local
tar --strip-components 1 -xJf ~/Downloads/node-v4.4.5-linux-x64.tar.xz
//Verify
node -v
npm version
How to upload file in MEAN Stack Do these steps 1. npm install ng-file-upload 2. include ng-file-upload.min.js in your angular index .html 3. Use this example to copy form to your angular page from where u want to upload file. -- http://jsfiddle.net/0m29o9k7/ or http://jsfiddle.net/danialfarid/2vq88rfs/136/ Copy this code outside of any form which is already there: 4. Change this url from example code to where you want to upload files -- url: 'https://angular-file-upload-cors-srv.appspot.com/upload', 6. In your server.js or app.js which ever you are using as (node server.js) to start app add these lines var crypto = require('crypto'); var mime = require('mime'); var multer = require('multer'); var storage = multer.diskStorage({ destination: function (req, file, cb) { ...
Thanks for sharing this blog about how to install node on ubuntu. If you are looking to Hire Nodejs Developers for nodejs application then you should understand the phenomena of Back End Development
ReplyDelete