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

June 28, 2017 755 views
MongoDB Node.js Nginx Ubuntu 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
Host: 127.0.0.1
Port: 27017
Username: 
Password: 
Authentication Database: 
Data import Started
/opt/soajs/node_modules/soajs.utilities/index.js:126
                    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)

Be the first one to answer this question.