i am getting an error when importing data to mongo,i am using nodejs with nginx and mongo db.

Posted June 28, 2017 1.6k views
NginxMongoDBNode.jsUbuntu 16.04

i have installed all needed packages with ur help.
but i am getting an error when submitting the command below:

--      sudo nodejs index -f getStarted     --
Below are the information provided
File Name: /opt/soajs/node_modules/soajs.utilities/data/getStarted
Port: 27017
Authentication Database: 
Data import Started
                    throw new Error(error);

Error: Error: Command failed: /bin/sh -c node /opt/soajs/node_modules/soajs.utilities/data/getStarted/dataTmp.js

    at /opt/soajs/node_modules/soajs.utilities/index.js:126:12
    at ChildProcess.exithandler (child_process.js:220:5)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:821:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

edited by asb
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!