-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module 'exists-sync' #1186
Comments
I hit this too and got around it by running a |
I still get the same error after running npm install :-/ ng init Error: Cannot find module 'exists-sync' Mac OS X El Capitan 10.11.5 |
I did npm install in the nodemodules and it generated new project but when I typed
|
go to |
I ran "npm install" twice:
|
just had the same problem on macOS |
Just hit this problem too. Should the readme be updated to mention
and that doesn't work due to this issue. |
try running |
Re-installing the CLI (to beta8) and starting a brand new project, I had to do additional npm installs before I was able to run the app. npm i -D exists-sync |
you have to go inside the directory of angular cli , inside of node and npm install |
That's right, I had to do that too but still had to do the additional installs after ng new in the project itself. |
Error: Cannot find module 'exists-sync' algo asi ? en esta carpeta dale npm install y fue .. , en la tuya en tu caso |
got same problem, npm install --save works for me |
ran npm install and worked for me |
npm install and worked for me |
- Navigation problem was solved by new version of @angular/router (alpha.8) - adds some packages to devDependencies because of some angular-cli problems - see: https://github.com/angular/angular-cli/issues/1186\#issuecomment-228364667 @fmalcher @GregOnNet @JohannesHoppe
Thanks @crzyjcky ! Worked like magic. |
@crzyjcky It also solve my issues. Thanks! |
|
I guess this is the problem with NPM itself. ember-cli has a dependency "exists-sync": "0.0.3" Same is the case with |
@madhusudhand how than can the dependencies for angular-cli / ember-cli be installed? |
+1 However I'm running on node 6.2.2 with latest npm 3.10.2
|
@cre8 please close the issue if it is solved. |
@Rafi993 it seems to be that this is not resolves as of now.
|
I get this error message when I try to create new ng project | Os X El Capitan ng new tg Error: Cannot find module 'exists-sync' |
As @Splaktar mentioned, the fix will be out in the next beta (beta.9). Meanwhile what you can do is to delete |
Updating npm to the latest version fixed the issue for me too. |
fresh install of windows 10, new download of node.js, while it installed ng without a problem it hit the sync issue immediately. I've got no package.json file to run, just following a tutorial to
and i get the errors. |
@rbnzdave scroll up, then install dev dependencies for angular-cli 🆙 |
New shit happens, I downloaded the node 6.x.x latest version it works fine for the ng new project command, but when I type ng serve it pops up an throw error Envoyé de mon iPhone
|
Just do npm install in your project. That fixed it for me. |
I did it in /node_modules and in my project, So I really don’t understand On 4 juillet 2016 at 21:30:50, Muhammad Siddiqi ([email protected]) Just do npm install in your project. That fixed it for me. — |
@tieppt yeah was going to do that today, was just pointing out that a fresh install of everything wasn't working either so wasnt just "update npm" :) |
using npm i -D [items] didnt work for me, i had to
and now npm new reddit-clone is actually doing something for me. (following r33 tutorial mp4 from ng-book2. totally recommend) --update : and now ng serve is failing from not being able to find 'exists-sync' think i've got bigger problems somewhere. --update 2 : apparently a fresh install of node.js doesnt include an updated npm. ran
and then ng serve works fine. I'm almost ready to wipe out nodejs/npm completely and re-install just to see if that was the issue the whole time. if you are having issues, like me, and
doesnt get you at least 3.x.x etc, you will need to manually install npm to get the latest version. |
Hi all : |
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 |
@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? |
I haven't missed any dependecies, I haven't installed the correct version Le vendredi 12 août 2016, mchamo [email protected] a écrit :
|
Upgraded to the latest npm 5.0.3 and had |
I can confirm the issue from @ctrl-brk however I cannot get it to work by |
The following worked for me.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
os: Windows 10
Versions. Please run
ng --version
. If there's nothing outputted, pleaseangular-cli: 1.0.0-beta.8
node: 6.2.2
os: win32 x64
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.
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)
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: