Skip to content

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

Closed

Description

@cintia-baniola

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

Activity

  1. neilhem commented on Jun 29, 2016

    @neilhem
    Contributor

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

  2. popstr commented on Jul 3, 2016

    @popstr

    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.

  3. indcoder commented on Jul 3, 2016

    @indcoder

    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.

  4. filipesilva commented on Jul 3, 2016

    @filipesilva
    Contributor

    Dupe of #1186.

  5. phillipzada commented on Jul 12, 2017

    @phillipzada

    The following worked for me.

    npm cache clean --force
    cd node_modules\@angular\cli
    npm i
    cd ..\..\..
    npm i
    ng serve
    
  6. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    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.

  7. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions