angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Cannot find module 'exists-sync'

Open cre8 opened this issue 10 years ago • 48 comments

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) os: Windows 10

  2. Versions. Please run ng --version. If there's nothing outputted, please angular-cli: 1.0.0-beta.8 node: 6.2.2 os: win32 x64

  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you do on your code? etc. I updated to the latest cli version (beta 8). When I run ng outside the project it shows me all the options. But when I run it inside my project I get an error.

  4. 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: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. (C:\xampp\htdocs\foo1\node_modules\angular-cli\node_modules\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)

  5. Mention any other details that might be useful.


    Thanks! We'll be in touch soon.

cre8 avatar Jun 23 '16 19:06 cre8

Hi all : This problem is seriously blocker any help !!

samirthebti avatar Jul 05 '16 02:07 samirthebti

Ok, so to all the people who had this problem, please make sure you got the latest & current version of node installed (at this time : node : 6.2.2 and npm : 3.9.5) then install angular-cli by typing npm install -g angular-cli (sudo if you get warns) then go to /node_modules, find the angular-cli folder, and run npm install (sudo may be required) then, start a project ng new projectname go into the new created project folder and type npm i. Peace !

ghost avatar Jul 05 '16 12:07 ghost

@ddagone is there a dependency on node 6.2.2? I may have missed it, but, I don't see that stated on angular cli website or this git repo?

mchamo avatar Aug 12 '16 03:08 mchamo

I haven't missed any dependecies, I haven't installed the correct version of node

Le vendredi 12 août 2016, mchamo [email protected] a écrit :

@ddagone https://github.com/ddagone is there a dependency on node 6.2.2? I may have missed it, but, I don't see that stated on angular cli website or this git repo?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/angular/angular-cli/issues/1186#issuecomment-239355919, or mute the thread https://github.com/notifications/unsubscribe-auth/AKTOFF1riMYT9FULw7dkbOgIPswswwPVks5qe-96gaJpZM4I9KfJ .

ghost avatar Aug 12 '16 07:08 ghost

Upgraded to the latest npm 5.0.3 and had angular cli cannot find module 'rsvp' Going to node_modules/angular/cli and running nmp i fixed it but...

ctrl-brk avatar Jun 08 '17 17:06 ctrl-brk

I can confirm the issue from @ctrl-brk however I cannot get it to work by npm i the cli #showstopper

BenRacicot avatar Jun 17 '17 14:06 BenRacicot

The following worked for me.

npm cache clean --force
cd node_modules\@angular\cli
npm i
cd ..\..\..
npm i
ng serve

phillipzada avatar Jul 12 '17 04:07 phillipzada

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.