node.js - MongoDB-Express::ENOTDIR: not a directory,...gssapi.js/package.json -


i using mongodb in express-js project. trying run server in vs code throwing errors npm packages. works fine webstorm , command-line.

error: enotdir: not directory, stat '/home/user/workspace/project1/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/auth/gssapi.js/package.json'     @ error (native)     @ fs.existssync (fs.js:219:13)     @ find_package_json ('/home/user/workspace/project1/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/index.js:13:9)     @ require_optional ('/home/user/workspace/project1/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/require_optional/index.js:37:18)     @ object.<anonymous> ('/home/user/workspace/project1/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/lib/auth/gssapi.js:27:14)     @ module._compile (module.js:410:26)     @ object.module._extensions..js (module.js:417:10)     @ module.load (module.js:344:32)     @ function.module._load (module.js:301:12)     @ module.require (module.js:354:17)   

i have tried installing packages many times , updated npm not fix it. can please advise how fix this? thanks. package.json file.

{   "name": "project 1",   "version": "1.0.0",   "description": "project 1 apis",   "private": true,   "scripts": {     "start": "node ./bin/www"   },   "license": "bsd-2-clause",   "dependencies": {     "body-parser": "^1.17.2",     "connect-multiparty": "^2.0.0",     "cookie-parser": "^1.4.3",     "csvtojson": "^1.1.7",     "express": "~4.14.0",     "moment": "^2.18.1",     "mongodb": "^2.2.31",     "mongoose": "^4.11.6",     "mongoose-double": "0.0.1",     "morgan": "^1.8.2",     "static-favicon": "^2.0.0-alpha",     "uniqid": "^4.1.1"   } } 


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -