angular-cli: Cannot find module '@angular-cli/base-href-webpack'

Hello,

I have a problem since installing the latest version (1.0.0-beta.11-webpack.8). When i run any ng command in a Terminal, this error appears : Cannot find module ‘@angular-cli/base-href-webpack’ Error: Cannot find module ‘@angular-cli/base-href-webpack’ at Function.Module._resolveFilename (module.js:455:15) at Function.Module._load (module.js:403:25) at Module.require (module.js:483:17) at require (internal/module.js:20:19) … And When i try : ‘npm install @angular-cli/base-href-webpack’, it tells that this module is not found. Is this module missing or there’s a trick to install it directly from the angular-cli source ? I give more details below and complete stack trace in attached file. Thanks.

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Linux, XUbuntu 15.10
  2. Versions. Please run ng --version. If there’s nothing outputted, please run in a Terminal: node --version and paste the result here: ng --version failed but the source code is 1.0.0-beta.11-webpack.8 node --version --> v6.5.0 npm --version --> 3.10.3
  3. Repro steps. Was this an app that wasn’t created using the CLI? What change did you do on your code? etc. I only clone with git the angular-cli repo and installed it with npm.
  4. The log given by the failure. Normally this include a stack trace and some more information.

See complete stack trace in attached error.log.txt file. –> error.log.txt

  1. Mention any other details that might be useful.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 5
  • Comments: 19 (1 by maintainers)

Most upvoted comments

still broken in 1.0.0-beta.11-webpack.9

I’m using version beta.15, and still facing the same issue… 😦. Done several npm uninstall -g angular-cli , followed by npm cache clean, and npm install -g angular-cli, but it has not helped…

Node Version: 6.6.0 Npm Version: 3.10.8

I am still getting this error with angular-cli@1.0.0-beta.11-webpack.9-4

i have same problem bro…