Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM START failed after a successful NPM INSTALL #21

Open
cbeldacap opened this issue Oct 24, 2016 · 8 comments · May be fixed by #22
Open

NPM START failed after a successful NPM INSTALL #21

cbeldacap opened this issue Oct 24, 2016 · 8 comments · May be fixed by #22

Comments

@cbeldacap
Copy link

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)
    (...)
@hbekkouche
Copy link

same problem for me

@mapiram
Copy link

mapiram commented Oct 24, 2016

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

@hbekkouche
Copy link

hbekkouche commented Oct 24, 2016

I Try this and it work for me

  • delete node_modules
  • do a fresh npm i angular-cli@1.0.0-beta.18 -g
  • do again ng init
  • Y --> override package.json

con you confirm.

@Fiontan
Copy link

Fiontan commented Oct 24, 2016

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

@Fiontan
Copy link

Fiontan commented Oct 24, 2016

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

@ankurlalit
Copy link

Same issue.

@Fiontan
Copy link

Fiontan commented Oct 25, 2016

@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

@RyderMS
Copy link

RyderMS commented Nov 16, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants