You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: Cannot find module 'exists-sync' after updating #1248
The log given by the failure. Normally this include a stack trace and some
more information.
Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Users/steve/Documents/roundpoint/nowce/nowce-browser/sandbox/nowce-landing/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:11:26)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
I updated node from v4.0.0 to v6.2.2 and updated npm from version 2.14.2 to 3.9.5 (current versions),
deleted the node_modules from my project then did npm install followed by ng init, I was asked if I wanted to overwrite package.json, system-config.ts and a bunch of others which I said yes to all and I was able to get running again. I did lose anything I had added Bootstrap, Sass etc. Thank goodness for source control. I manually merged my changes back in. Everything worked except for the routing. I followed the Dev guide for the new router stuff and finally got that working.
generating routes is disabled, hopefully they get that fixed soon
I just uninstalled node and npm and reinstalled on versions:
node v6.2.2
npm to 3.10.2
Same error displayed Error: Cannot find module 'exists-sync' at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (C:\dev\ng2\Heroes\node_modules\angular-cli\node_modul es\ember-cli\lib\models\project.js:11:26) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3)
Activity
michaelchiche commentedon Jun 29, 2016
I have the same problem
jprinaldi commentedon Jun 30, 2016
See #1186.
stevefarwell commentedon Jun 30, 2016
I updated node from v4.0.0 to v6.2.2 and updated npm from version 2.14.2 to 3.9.5 (current versions),
deleted the node_modules from my project then did npm install followed by ng init, I was asked if I wanted to overwrite package.json, system-config.ts and a bunch of others which I said yes to all and I was able to get running again. I did lose anything I had added Bootstrap, Sass etc. Thank goodness for source control. I manually merged my changes back in. Everything worked except for the routing. I followed the Dev guide for the new router stuff and finally got that working.
generating routes is disabled, hopefully they get that fixed soon
fix(npm): update to npm 3.10.2
fix(npm): update to npm 3.10.2
butters16 commentedon Jun 30, 2016
Doing an extra npm install worked for me.
ng new PROJECT_NAMEcd PROJECT_NAMEng serveexists-sync failure
npm installng servesuccess
fix(npm): update to npm 3.10.2 (#1250)
Josid88 commentedon Jun 30, 2016
I just uninstalled node and npm and reinstalled on versions:
Same error displayed
Error: Cannot find module 'exists-sync' at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (C:\dev\ng2\Heroes\node_modules\angular-cli\node_modul es\ember-cli\lib\models\project.js:11:26) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3)dvh91 commentedon Jun 30, 2016
Fixed that by going to 'node_modules/angular-cli' inside project and run 'npm install'
then run ng serve again.
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.