Skip to content

Windows 10: after upgrading to latest version - I get an error (was working before updating) #1242

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

Closed
cintia-baniola opened this issue Jun 29, 2016 · 6 comments

Comments

@cintia-baniola
Copy link

cintia-baniola commented Jun 29, 2016

ng serve
module.js:327
throw err;
^

Error: Cannot find module 'rsvp'
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\Hans\AppData\Roaming\npm\node_modules\angular-cli\node_modules\leek\lib\leek.js:3:19)
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)

Hans@HP-HANS C:\Users\Hans\Web\frontend\platform\js\angular20\angular2-questions-manekinekko

ng version
module.js:327
throw err;
^

Error: Cannot find module 'rsvp'
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\Hans\AppData\Roaming\npm\node_modules\angular-cli\node_modules\leek\lib\leek.js:3:19)
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)

Hans@HP-HANS C:\Users\Hans\Web\frontend\platform\js\angular20\angular2-questions-manekinekko

@neilhem
Copy link
Contributor

neilhem commented Jun 29, 2016

Try to remove node_modules folder & install dependencies again rm -rf node_modules && npm i

@popstr
Copy link

popstr commented Jul 3, 2016

Removing node_modules folder and running npm install did not solve the issue for me. I removed angular-cli and installed it again and then it worked.
npm remove -g angular-cli
npm install -g angular-cli

I'm on Ubuntu Linux 16.04 btw.

@indcoder
Copy link

indcoder commented Jul 3, 2016

Even I had the same issue a few days back. After numerous npm install failed for angular-cli , the .npm modules got fried.

I would follow the steps @popstr has mentioned but perhaps add an intermediate command between npm remove and install

npm cache clean

But if that doesnt work....then we have to go for the nuke option.
So this is what I did , I upgraded node from v5.* to v6.2.2(the latest). I had shift-deleted my .npm and .npm cache folder in the Roaming directory in Windows.

@filipesilva
Copy link
Contributor

Dupe of #1186.

@phillipzada
Copy link

The following worked for me.

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

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants