I am not able to run the code and keep getting Error: Cannot find module

I am not able to run the code and keep getting Error: Cannot find module.

(the code)

const hello = 'hw';
console.log(hello);

(The error Message)

Rs-MBP:1-node-farm rs1596$ node index.js

internal/modules/cjs/loader.js:800

    throw err;

    ^



Error: Cannot find module '/Users/rs1596/Library/Mobile Documents/com~apple~CloudDocs/complete-node-bootcamp-master/1-node-farm/index.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
    at Function.Module._load (internal/modules/cjs/loader.js:690:27)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Rs-MBP:1-node-farm rs1596$

219 thoughts on “I am not able to run the code and keep getting Error: Cannot find module”

  1. Hello i am kavin, its my first occasion to commenting
    anyplace, when i read this paragraph i thought i could also make comment due to this brilliant paragraph.

    Reply
  2. Hey! I know this is kinda off topic however I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing
    a blog post or vice-versa? My blog addresses a lot of the same subjects as yours and I think we could greatly benefit from each other.
    If you might be interested feel free to send me an e-mail.

    I look forward to hearing from you! Excellent blog by the way!

    Reply
  3. Howdy! I know this is kinda off topic but I’d figured I’d ask.

    Would you be interested in trading links or maybe guest writing a blog post or
    vice-versa? My website covers a lot of the same subjects as yours and I feel we could greatly benefit from each other.

    If you happen to be interested feel free to shoot me an email.

    I look forward to hearing from you! Great blog
    by the way!

    Reply
  4. Just desire to say your article is as astonishing.
    The clarity in your post is just spectacular and i could assume you are
    an expert on this subject. Well with your permission let me to
    grab your feed to keep updated with forthcoming post.
    Thanks a million and please keep up the rewarding work.
    quest bars http://bit.ly/3jZgEA2 quest bars

    Reply
  5. Magnificent items from you, man. I have take into accout your stuff prior to and you are
    simply extremely magnificent. I really like what you’ve got here, certainly like what you are stating
    and the way through which you say it. You are making it entertaining and you still take care of to keep it wise.
    I cant wait to learn far more from you. This is really a
    wonderful web site. scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery

    Reply
  6. My husband went to bring a prescription from our local zithromax liquid dose , in defiance of them halving the prescription since yesterday they have not processed it and ignoring my preserve being in categorical throes they told him to be communicated reject after 4pm. They then told him on the phone when he rang to get a firmness ‘if you want to pay no heed to a gripe in, say lone in!’ Charming! They told him they contain the medication in standard but hadn’t unpacked it and wouldn’t do so while he waited. There were 3 other customers further him and there were more staff than customers but they were too elaborate to improve him! Certainly nauseating client service!

    Reply