-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
Description
Bug Report or Feature Request (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
Area
- [ ] devkit
- [ ] schematics
I don't know
Versions
Angular CLI: 6.0.8
Node: 8.11.3
OS: win32 x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.6.8
@angular-devkit/build-angular 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 0.6.8
@angular/cdk 5.2.4
@angular/cli 6.0.8
@angular/material 5.2.4
@schematics/angular 0.6.8
@schematics/update 0.6.8
rxjs 5.5.8
typescript 2.4.2
node; v8.11.3
npm: 5.6.0
Windows 10
Repro steps
We had an existing angular application, that was in version 5, and was built using CLI 5. A colleague who is newly joined to the team installed a fresh PC, and gets this error.
The point is, creating a new application is OK and works just fine. But for our old app we get this error and we couldn't solve it.
The log given by the failure
Cannot find module 'webpack'
Error: Cannot find module 'webpack'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Taak\PixelearnWeb\school\node_modules\mini-css-extract-plugin\dist\index.js:15:16)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Taak\PixelearnWeb\school\node_modules\mini-css-extract-plugin\dist\cjs.js:3:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
Desired functionality
When node and npm and angular/cli and angular and material are installed globally, things work out of the box with minimum friction.
Mention any other details that might be useful
artkrasnyuk, feimosi and CharlBest