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
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, please
angular-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)
I hit this too and got around it by running a npm install
Reacted by Kevin Yang, crzyjcky, Federico Marcos, bastienJS, David Lee, Dorian Mullings, Jek Bao CHOO, Lindsay Ward, Debbie-Ann Facey, Minh Nguyen and 14 more
I still get the same error after running npm install :-/
ng init
module.js:327
throw err;
^
Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/srv/fuma/frontend/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:11:26)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Mac OS X El Capitan 10.11.5
angular-cli: 1.0.0-beta.8
node v4.4.5
npm 2.15.4
I did npm install in the nodemodules and it generated new project but when I typed ng serve --port 4201 --live-reload-port 49153 It shows the same error again
module.js:327
throw err;
^
Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\Desktop\ngTest\node_modules\angular-cli\node_modules\ember-cli\lib\models\project.js:11:26)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
For "ng new" to work:
cd /usr/lib/node_modules/angular-cli
sudo npm install
For "ng serve" to work:
cd "your project folder"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/node_modules/angular-cli
npm install
Reacted by Tiep Phan, Tom Buyse, Jason Hodges, Rene Vallecillo V, Chris Mugnier, bichinl, Sijin T V, Juan Pablo Rinaldi, dtereshenko, James Manning and 13 more
Reacted by bisubus, James Manning, 罗青, Benjamin Schmid, Dan Geffroy, Abdul Hamid Shuvo, Becca , Bernardo Cesar de Oliveira Lima and vikas-polarisft
Just hit this problem too. Should the readme be updated to mention npm install as this doesn't instil confidence for newcomers? The first thing the readme shows is:
ng new PROJECT_NAME
cd PROJECT_NAME
ng serve
and that doesn't work due to this issue.
Reacted by dtereshenko, Michael Prentice and Michael Pumo
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
npm i -D object-assign
npm i -D minimatch
npm i -D walk-sync
npm i -D through
Reacted by jody tate, Enrique Guzmán, hakonamatata, Nicholas O'Malley, Amel Musić, Matthias, Костя Третяк, davidtlee, Austin Fisher, Juan Wong and 1 more
Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\Martin\Documents\project\newProject\project\node_modules\angular-cli\node_modules\ember-cli\lib\models\project.js:11:26)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
algo asi ?
en esta carpeta dale npm install y fue .. , en la tuya en tu caso
\Users\Martin\Documents\project\newProject\project\node_modules\angular-cli\node_modules
Reacted by GotPop
Reacted by Jan Lohage, dtereshenko, Dan Geffroy, Mikael Karlsson and Janusz Piechówka
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
npm install -g npm
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
npm -v
doesnt get you at least 3.x.x etc, you will need to manually install npm to get the latest version.
Activity
elliott-davis commentedon Jun 23, 2016
I hit this too and got around it by running a
npm installscrivy commentedon Jun 23, 2016
I still get the same error after running npm install :-/
ng init
module.js:327
throw err;
^
Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/srv/fuma/frontend/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:11:26)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Mac OS X El Capitan 10.11.5
angular-cli: 1.0.0-beta.8
node v4.4.5
npm 2.15.4
Rafi993 commentedon Jun 24, 2016
I did npm install in the nodemodules and it generated new project but when I typed
ng serve --port 4201 --live-reload-port 49153It shows the same error againtieppt commentedon Jun 24, 2016
go to
angular-cliinstalled directory ex:C:\xampp\htdocs\foo1\node_modules\angular-clirunnpm icrzyjcky commentedon Jun 24, 2016
I ran "npm install" twice:
cd /usr/lib/node_modules/angular-cli
sudo npm install
cd "your project folder"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/node_modules/angular-cli
npm install
littleStudent commentedon Jun 24, 2016
just had the same problem on macOS
running
npm installdid solve it.KarlPurk commentedon Jun 24, 2016
Just hit this problem too. Should the readme be updated to mention
npm installas this doesn't instil confidence for newcomers? The first thing the readme shows is:and that doesn't work due to this issue.
Codermar commentedon Jun 24, 2016
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
npm i -D object-assign
npm i -D minimatch
npm i -D walk-sync
npm i -D through
M4RTO commentedon Jun 24, 2016
you have to go inside the directory of angular cli , inside of node and npm install
Codermar commentedon Jun 24, 2016
That's right, I had to do that too but still had to do the additional installs after ng new in the project itself.
M4RTO commentedon Jun 24, 2016
Error: Cannot find module 'exists-sync'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\Martin\Documents\project\newProject\project\node_modules\angular-cli\node_modules\ember-cli\lib\models\project.js:11:26)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
algo asi ?
en esta carpeta dale npm install y fue .. , en la tuya en tu caso
\Users\Martin\Documents\project\newProject\project\node_modules\angular-cli\node_modules
rijine commentedon Jun 24, 2016
got same problem, npm install --save works for me
david-lee commentedon Jun 25, 2016
ran npm install and worked for me
EdwinFernandoGarciaLozano commentedon Jun 25, 2016
npm install and worked for me
Thanks!
27 remaining items
tieppt commentedon Jul 4, 2016
@rbnzdave scroll up, then install dev dependencies for angular-cli 🆙
msiddiqi commentedon Jul 4, 2016
Just do npm install in your project. That fixed it for me.
rbnzdave commentedon Jul 4, 2016
@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" :)
rbnzdave commentedon Jul 4, 2016
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.
samirthebti commentedon Jul 5, 2016
Hi all :
This problem is seriously blocker any help !!
mchamo commentedon Aug 12, 2016
@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?
ctrl-brk commentedon Jun 8, 2017
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 ifixed it but...BenRacicot commentedon Jun 17, 2017
I can confirm the issue from @ctrl-brk however I cannot get it to work by
npm ithe cli #showstopperphillipzada commentedon Jul 12, 2017
The following worked for me.
angular-automatic-lock-bot commentedon Sep 7, 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.