material2-app icon indicating copy to clipboard operation
material2-app copied to clipboard

NPM START failed after a successful NPM INSTALL

Open cbeldacap opened this issue 8 years ago • 8 comments

The command throws this error....

Cannot read property 'AssetUrl' of undefined
TypeError: Cannot read property 'AssetUrl' of undefined
    at Object.<anonymous> (C:\DevonFactory\NjordWeb\material2-app-master\node_modules\@angular\compiler-cli\src\private_import_compiler.js:10:51)
    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)
    (...)

cbeldacap avatar Oct 24 '16 14:10 cbeldacap

same problem for me

hbekkouche avatar Oct 24 '16 18:10 hbekkouche

I've the same problem. It seems an issue related to @angular/compiler-cli. Same bad result with its versions 0.6.3 and 0.6.4

mapiram avatar Oct 24 '16 19:10 mapiram

~~I Try this and it work for me~~

  • ~~delete node_modules~~
  • ~~do a fresh npm i [email protected] -g~~
  • ~~do again ng init~~
  • ~~Y --> override package.json~~

~~con you confirm.~~

hbekkouche avatar Oct 24 '16 20:10 hbekkouche

Same issue. haven't tried @hbekkouche proposal...has anyone?

Fiontan avatar Oct 24 '16 20:10 Fiontan

@hbekkouche your proposal will overwrite teh package.json and so the npm install will not add material

Fiontan avatar Oct 24 '16 21:10 Fiontan

Same issue.

ankurlalit avatar Oct 25 '16 10:10 ankurlalit

@hbekkouche 's approach works although you will need to take care with over writing files with ng init (or you may not have to worry depending on whether you have added anything or not) and will be prompted in the command line for each file that ng init creates. After this, you must manually add the reference to the compatible version of material to package.json and then do another npm install which will not take as long as the initial run.. @ankurlalit

Fiontan avatar Oct 25 '16 11:10 Fiontan

@hbekkouche I tried your instructions, making sure to carefully not override any of the other files in the project when prompted, but its still throwing same error.

RyderMS avatar Nov 16 '16 21:11 RyderMS