title: ExpressJS Multer File Persmission
body: <pre><code>var express = require('express');
  var app = express();
  var fs = require("fs");
  
  var bodyParser = require('body-parser');
  var multer  = require('multer');
  
  app.use(express.static('public'));
  app.use(bodyParser.urlencoded({ extended: false }));
  app.use(multer({ dest: '/new/'}));
  </code></pre>
  
  <p>This is starting of file. It is always showing below message during startup the server</p>
  
  <blockquote>
    <p>/usr/lib/node_modules/multer/node_modules/mkdirp/index.js:90
                        throw err0;
                              ^ Error: EACCES, permission denied '/new'
        at Object.fs.mkdirSync (fs.js:654:18)
        at Function.sync (/usr/lib/node_modules/multer/node_modules/mkdirp/index.js:71:13)
        at new DiskStorage (/usr/lib/node_modules/multer/storage/disk.js:21:12)
        at module.exports (/usr/lib/node_modules/multer/storage/disk.js:65:10)
        at new Multer (/usr/lib/node_modules/multer/index.js:15:20)
        at multer (/usr/lib/node_modules/multer/index.js:75:12)
        at Object. (/var/www/node/server.js:10:9)
        at Module._compile (module.js:456:26)
        at Object.Module._extensions..js (module.js:474:10)
        at Module.load (module.js:356:32)</p>
  </blockquote>
  
  <p>Please let me if someone can help me to prevent this problem. Thank you so much.</p>