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 7644133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:36:38+00:00 2026-05-31T09:36:38+00:00

I am new to nodejs. I managed to install node.js on amazon EC2 server

  • 0

I am new to nodejs. I managed to install node.js on amazon EC2 server using this tutorial http://iwearshorts.com/blog/how-to-install-node-js-on-your-server/

But when I run the code I get this error. anyone know why this is happening and what I need to solve this.

node.js:197
        throw e; // process.nextTick error, or 'error' event on first tick
          ^
Error: Cannot find module '/home/ubuntu/public_html/node_test.js'
   at Function._resolveFilename (module.js:332:15)
   at Function._load (module.js:279:25)
   at Array.0 (module.js:481:10)
   at EventEmitter._tickCallback (node.js:188:41)
  • 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-05-31T09:36:40+00:00Added an answer on May 31, 2026 at 9:36 am

    You should post your primary .js file that you are running in node so we can find your exact problem.

    My guess is you are passing the wrong value to require. Pass a relative file path without the filename extension like this: var node_test = require("./public_html/node_test");

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

Sidebar

Related Questions

New to javascript/jquery and having a hard time with using this or $(this) to
I was trying out Joose with node.js and managed to produce code like this:
I am new to NodeJS so this is probably an easy fix. However I
I'm quite new to nodeJS and I'm trying to install a package called inotify
I am using MvcSiteMapProvider 2.2.1 (http://mvcsitemap.codeplex.com), and am having a problem with creating children
New to WCF, but familiar with COM+ - can I wrap a WCF service
new Date(05-MAY-09 03.55.50) is any thing wrong with this ? i am getting illegalArgumentException
We are switching from a non-clustered to a 2-node clustered MSMQ Windows Server 2008
New to NodeJS. Yes I know I could use a framework, but I want
I'm new to nodejs, the only way that I can come up with is

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.