node.js - NPM Install is not working. Getting Reference Errors -


i in process of learning node.js , web dev together, coming mobile dev background , haven't coded in few years.

i cloned project github , planning on building on top of learning project.

i running npm install add dependencies project , seem installing properly. succesfully being added node_modules directory being added dependancy package.json

however when running app these errors

referenceerror: multer not defined     @ object.<anonymous> (/users/willjamieson/airdrive/app.js:26:21)     @ module._compile (module.js:556:32)     @ object.module._extensions..js (module.js:565:10)     @ module.load (module.js:473:32)     @ trymoduleload (module.js:432:12)     @ function.module._load (module.js:424:3)     @ module.runmain (module.js:590:10)     @ run (bootstrap_node.js:394:7)     @ startup (bootstrap_node.js:149:9)     @ bootstrap_node.js:509:3 

there other dependancies working within app ones project when forked it.

var express = require('express'); var app = express(); var path = require('path'); var formidable = require('formidable'); var fs = require('fs'); var multer = require("multer"); var bodyparser = require("body-parser"); var minio = require("minio"); 

i added multer bodyparsr , minio don't work else came original clone , work flawlessly when remove packages installed.

javascript case sensitive. error says multer not defined , in code shown define var multer = require("multer");

try var multer = require("multer");


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -