Anyone know why Edge would be complaining that it can't find the body-parser module? This used to work fine, but the message has been coming up in the last week or so. The module's used in a server.js that's called as a target endpoint. Thanks!
Output from the Edge UI:
*** Starting script *** Error: Cannot find module 'body-parser' Error: Cannot find module 'body-parser' at module.js:340 at module.js:280 at module.js:364 at require (module.js:380) at /organization/environment/api/server.js:11 at module.js:456 at module.js:474 at module.js:356 at module.js:312 at module.js:497 at startup (trireme.js:142) at trireme.js:923
Lines 11 - 16 of my server.js:
var bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true }));
My installed Node modules:
The package.json:
{ "name": "data-manager", "version": "0.0.1", "description": "Data manager layer for streetcarts.", "main": "server.js", "dependencies": { "async": "^1.5.0", "body-parser": "^1.14.1", "cors": "^2.5.1", "express": "^4.13.3", "request": "^2.65.0" }, "devDependencies": {}, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node server.js" }, "license": "ISC" }