Angular-cli: ng command : module.js : 538 throw err

Created on 7 Nov 2017  路  6Comments  路  Source: angular/angular-cli

All 6 comments

I did the following:
1.Download node.js form node.org
2.Install

  1. type "command prompt", right click "Run as Administrator"
  2. ng --help

module.js:538
throw err;
^

Error: Cannot find module 'C:UsersSatishAppDataRoamingnpmnode_modules@angularclibinng'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

This seems to be related to your machine settings, not to angular-cli itself

  1. uninstall angular cli if you have already installed it
    npm uninstall -g @angular/cli

  2. Delete the C:UsersSatishAppDataRoamingnpmnode_modules@angular folder if it still exists after the uninstall

3 reinstall angular-cli globally
npm install -g @angular/cli

See this, how we can solve this error

C:UsersSatish>ng -v
module.js:538
throw err;
^
Error: Cannot find module 'C:UsersSatishAppDataRoamingnpmnode_modules@angularclibinng'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

image

Unfortunately npm installation issues is not something to be tracked via the Angular CLI repo. Please see documentation for npm or look into a support site such as stack overflow.

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._

Was this page helpful?
0 / 5 - 0 ratings