components icon indicating copy to clipboard operation
components copied to clipboard

Not able to install dependencies

Open manasarora119 opened this issue 7 years ago • 7 comments

not able to install dependencies

needs yarn to install dependencies rather than Npm

manasarora119 avatar Jun 03 '19 09:06 manasarora119

@manasarora119 The components repository requires yarn for installing the dependencies. This is because our lock file is from yarn and we want to ensure that development on this repository is consistent across different devices.

Please see: https://github.com/angular/components/blob/master/DEV_ENVIRONMENT.md

devversion avatar Jun 03 '19 10:06 devversion

@devversion , It is possible to install dependencies via npm ???

manasarora119 avatar Jun 03 '19 10:06 manasarora119

You can, but it is not recommended. If you want to use npm, you need to update postinstall script in the package.json to not run check-npm.js

devversion avatar Jun 03 '19 10:06 devversion

@devversion Still getting error .............

The serve command requires to be run in an Angular project, but a project definition could not be found.

Please Help!!!!!!!!!!!!!!!!!!

manasarora119 avatar Jun 03 '19 19:06 manasarora119

@devversion any update ????

manasarora119 avatar Jun 05 '19 11:06 manasarora119

Hi @manasarora119. Can you please elaborate what you are trying to achieve?

From what you wrote.. it sounds like you want to run ng serve for the angular/components repository. This will never work as the components repository is not an Angular CLI project and we have our own tooling infrastructure.

You could just:

  1. Run yarn install
  2. Run yarn dev-app

devversion avatar Jun 05 '19 15:06 devversion

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.