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

Error: The "@angular/compiler-cli" package was not properly installed. #47

Open
mmc41 opened this issue Jun 25, 2017 · 4 comments
Open
Assignees

Comments

@mmc41
Copy link

mmc41 commented Jun 25, 2017

Just tried a git clone + npm install + npm run test and got

Error: The "@angular/compiler-cli" package was not properly installed.
    at Object.<anonymous> (/Users/xxx/temp/angular-cli-seed/node_modules/@ngtools/webpack/src/index.js:14:11)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/mmc/temp/angular-cli-seed/node_modules/@angular/cli/tasks/eject.js:10:19)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
@arranbartish
Copy link
Owner

Thanks for raising an issue.

It looks like the travis build is doing exactly thatish.

travis.yml fragment

install:
  - npm install
  - npm install codecov
script:
  - npm run ng test -- --single-run=true --browsers Chrome --code-coverage
  - ./node_modules/codecov/bin/codecov
  - npm run e2e
  - npm run lint
  - npm run build

Except for the codecov that I am adding on the fly it should be the same. I'll clean clone and confirm on my machine. At the same time I'll rerun the travis build, it doesn't seem to have run in a while.

What versions of node and npm are you running?

@arranbartish
Copy link
Owner

travis agrees that the build is broken. It looks like some dependencies have changed/moved along. First thing that i'll do it lock them down to the versions that worked then see what I can do to upgrade

@mmc41
Copy link
Author

mmc41 commented Jun 27, 2017

Thanks for looking at this. I am using npm 4.2.0 on node 7.9

@arranbartish
Copy link
Owner

arranbartish commented Jun 30, 2017

Not forgotten this. A bit swamped for capacity right now, however there seems to be approaches to get back to green.

  1. lock down dependencies to those that were green
    • I tried this with the project dependencies, but have the same issues. It seems to be a dependency of a dependency that's moved on and caused the break.
  2. Head down the upgrade path and fix any breaking issues

Any PR's for either are most welcome.

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

No branches or pull requests

2 participants