Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8091923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:10:33+00:00 2026-06-05T20:10:33+00:00

when I start my JS file, I get the follow error: Charon:modules Modius$ node

  • 0

when I start my JS file, I get the follow error:

Charon:modules Modius$ node testfile.js 

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
ReferenceError: define is not defined
    at Object.<anonymous> (/Applications/MAMP/htdocs/spacebattles/server/modules/testfile.js:11:1)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)
    at EventEmitter._tickCallback (node.js:192:40)
Charon:modules Modius$ 

and here the js file

define(['./db_user'], function (db_user) {

    var db_user = document.createElement("db_user.js");
    var tranfer = {
        login: "test" ,
        email: "holishitumsonst.com",
        password: "123nu"
    };
    db_user.insert(transfer);

}); 

thanks for help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:10:34+00:00Added an answer on June 5, 2026 at 8:10 pm

    I think you may misunderstood the concept of node. Like Florian sayed, node.js is “only” the V8 engine withouth a browser around it. This means you have no document (no DOM at all).

    To get started with node.js I recommend you to look into O’Reilly’s Up and running with node.js. The modular system is explained there, too.

    In Order to use MongoDB with node you have to use packages like mongoose or mongolian installed through npm. Both are explained in the book I mentioned above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As per Java web start where does the jar file get downloaded on a
Here I have 2 requirements: Need a batch file to start a process on
I start a download using PHP with this code: <? $_REQUEST['file'] = urldecode($_GET['file']); header(Content-type:
How do i automaticly start a file for download when a user clicks a
I define a 'block' of text as all lines between start of file, newline
I use this command to copy all files whose names start with 'file' from
I need to start a Visual Basic script file by using WMI in a
Need to parse a file for lines of data that start with this pattern
I get an error whenever I try to create a simple edge from a
Trying to install an Oracle DB. When I run: lsnrctl start ${ORACLE_SID} I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.