backend suddenly stopped working and threw this error “Cannot find module '../../cast/boolean'”How can I import a node js project to another node js project?Error “ng serve” on cmdthe command “npm” returns with an errorNode.js AWS deployment Error: Cannot find moduleTypeError: SuppressChunksPlugin is not a constructor, how to overcome this is a webpack?google cloud platform: “Can't find module firebase-admin”Error: Route.get() requires a callback functionCloud Functions for Firebase FCM reference errorGot an error while implementing express sessionHow to add folder as module in lambda function?

Which "exotic salt" can lower water's freezing point by 70 °C?

Good introductory book to type theory?

How to increase row height of a table and vertically "align middle"?

why it is 2>&1 and not 2>>&1 to append to a log file

Can you just subtract the challenge rating of friendly NPCs?

A♭ major 9th chord in Bach is unexpectedly dissonant/jazzy

I want to write a blog post building upon someone else's paper, how can I properly cite/credit them?

Employee is self-centered and affects the team negatively

Translation of "invincible independence"

While drilling into kitchen wall, hit a wire - any advice?

What did Varys actually mean?

The unknown and unexplained in science fiction

Scaling rounded rectangles in Illustrator

Bash prompt takes only the first word of a hostname before the dot

Where do 5 or more U.S. counties meet in a single point?

My parents are Afghan

Displaying an Estimated Execution Plan generates CXPACKET, PAGELATCH_SH, and LATCH_EX [ACCESS_METHODS_DATASET_PARENT] waits

When does WordPress.org notify sites of new version?

Does restarting the SQL Services (on the machine) clear the server cache (for things like query plans and statistics)?

Test whether a string is in a list with variable

Can a player choose to add detail and flavor to their character's spells and abilities?

What detail can Hubble see on Mars?

Justification of physical currency in an interstellar civilization?

Function annotation with two or more return parameters



backend suddenly stopped working and threw this error “Cannot find module '../../cast/boolean'”


How can I import a node js project to another node js project?Error “ng serve” on cmdthe command “npm” returns with an errorNode.js AWS deployment Error: Cannot find moduleTypeError: SuppressChunksPlugin is not a constructor, how to overcome this is a webpack?google cloud platform: “Can't find module firebase-admin”Error: Route.get() requires a callback functionCloud Functions for Firebase FCM reference errorGot an error while implementing express sessionHow to add folder as module in lambda function?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















A day before my project was working fine the next day this showed up when I ran nodemon command:



module.js:471

throw err;
^

Error: Cannot find module '../../cast/boolean'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (h:Backendnotecrates_backendnode_modulesmongooselibschemaoperatorsexists.js:3:21)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
[nodemon] app crashed - waiting for file changes before starting...


I run my project on visual studio and I closed visual studio directly
while my project was running may be this caused the problem??










share|improve this question
























  • rm -rf node_modules and try running npm install

    – maanijou
    Mar 23 at 6:08











  • This command is not running in windows can you be specific for windows

    – Hellstellar
    Mar 23 at 6:40











  • rm -rf node_modules means simply to remove node_modules folder

    – maanijou
    Mar 23 at 6:42











  • @Hellstellar He means delete the node_modules folder from the project root. In windows, if you use powershell, type rm node_modules. if you use cmd, type rmdir node_modules /s

    – Kiran Mathew Mohan
    Mar 23 at 7:52











  • @Hellstellar Could you post the line where you have imported that file using require?

    – Kiran Mathew Mohan
    Mar 23 at 7:54

















0















A day before my project was working fine the next day this showed up when I ran nodemon command:



module.js:471

throw err;
^

Error: Cannot find module '../../cast/boolean'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (h:Backendnotecrates_backendnode_modulesmongooselibschemaoperatorsexists.js:3:21)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
[nodemon] app crashed - waiting for file changes before starting...


I run my project on visual studio and I closed visual studio directly
while my project was running may be this caused the problem??










share|improve this question
























  • rm -rf node_modules and try running npm install

    – maanijou
    Mar 23 at 6:08











  • This command is not running in windows can you be specific for windows

    – Hellstellar
    Mar 23 at 6:40











  • rm -rf node_modules means simply to remove node_modules folder

    – maanijou
    Mar 23 at 6:42











  • @Hellstellar He means delete the node_modules folder from the project root. In windows, if you use powershell, type rm node_modules. if you use cmd, type rmdir node_modules /s

    – Kiran Mathew Mohan
    Mar 23 at 7:52











  • @Hellstellar Could you post the line where you have imported that file using require?

    – Kiran Mathew Mohan
    Mar 23 at 7:54













0












0








0








A day before my project was working fine the next day this showed up when I ran nodemon command:



module.js:471

throw err;
^

Error: Cannot find module '../../cast/boolean'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (h:Backendnotecrates_backendnode_modulesmongooselibschemaoperatorsexists.js:3:21)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
[nodemon] app crashed - waiting for file changes before starting...


I run my project on visual studio and I closed visual studio directly
while my project was running may be this caused the problem??










share|improve this question
















A day before my project was working fine the next day this showed up when I ran nodemon command:



module.js:471

throw err;
^

Error: Cannot find module '../../cast/boolean'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (h:Backendnotecrates_backendnode_modulesmongooselibschemaoperatorsexists.js:3:21)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
[nodemon] app crashed - waiting for file changes before starting...


I run my project on visual studio and I closed visual studio directly
while my project was running may be this caused the problem??







javascript node.js






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 23 at 7:54









maanijou

668619




668619










asked Mar 23 at 6:03









HellstellarHellstellar

256




256












  • rm -rf node_modules and try running npm install

    – maanijou
    Mar 23 at 6:08











  • This command is not running in windows can you be specific for windows

    – Hellstellar
    Mar 23 at 6:40











  • rm -rf node_modules means simply to remove node_modules folder

    – maanijou
    Mar 23 at 6:42











  • @Hellstellar He means delete the node_modules folder from the project root. In windows, if you use powershell, type rm node_modules. if you use cmd, type rmdir node_modules /s

    – Kiran Mathew Mohan
    Mar 23 at 7:52











  • @Hellstellar Could you post the line where you have imported that file using require?

    – Kiran Mathew Mohan
    Mar 23 at 7:54

















  • rm -rf node_modules and try running npm install

    – maanijou
    Mar 23 at 6:08











  • This command is not running in windows can you be specific for windows

    – Hellstellar
    Mar 23 at 6:40











  • rm -rf node_modules means simply to remove node_modules folder

    – maanijou
    Mar 23 at 6:42











  • @Hellstellar He means delete the node_modules folder from the project root. In windows, if you use powershell, type rm node_modules. if you use cmd, type rmdir node_modules /s

    – Kiran Mathew Mohan
    Mar 23 at 7:52











  • @Hellstellar Could you post the line where you have imported that file using require?

    – Kiran Mathew Mohan
    Mar 23 at 7:54
















rm -rf node_modules and try running npm install

– maanijou
Mar 23 at 6:08





rm -rf node_modules and try running npm install

– maanijou
Mar 23 at 6:08













This command is not running in windows can you be specific for windows

– Hellstellar
Mar 23 at 6:40





This command is not running in windows can you be specific for windows

– Hellstellar
Mar 23 at 6:40













rm -rf node_modules means simply to remove node_modules folder

– maanijou
Mar 23 at 6:42





rm -rf node_modules means simply to remove node_modules folder

– maanijou
Mar 23 at 6:42













@Hellstellar He means delete the node_modules folder from the project root. In windows, if you use powershell, type rm node_modules. if you use cmd, type rmdir node_modules /s

– Kiran Mathew Mohan
Mar 23 at 7:52





@Hellstellar He means delete the node_modules folder from the project root. In windows, if you use powershell, type rm node_modules. if you use cmd, type rmdir node_modules /s

– Kiran Mathew Mohan
Mar 23 at 7:52













@Hellstellar Could you post the line where you have imported that file using require?

– Kiran Mathew Mohan
Mar 23 at 7:54





@Hellstellar Could you post the line where you have imported that file using require?

– Kiran Mathew Mohan
Mar 23 at 7:54












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55311088%2fbackend-suddenly-stopped-working-and-threw-this-error-cannot-find-module%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55311088%2fbackend-suddenly-stopped-working-and-threw-this-error-cannot-find-module%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript