Skip to content

Change npm install to yarn to install dependencies #12495

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

Merged

Conversation

rsarky
Copy link
Contributor

@rsarky rsarky commented Oct 5, 2018

On cloning angular-cli and running npm install
I got the error message :

 npm install                                                                                                  angular-cli/git/master 

> @angular/devkit-repo@0.0.0 preinstall /home/rohit/Projects/angular-cli
> node ./tools/yarn/check-yarn.js

/home/rohit/Projects/angular-cli/tools/yarn/check-yarn.js:12
  throw new Error(
  ^

Error: Please use Yarn instead of NPM to install dependencies. See: https://yarnpkg.com/lang/en/docs/install/
    at Object.<anonymous> (/home/rohit/Projects/angular-cli/tools/yarn/check-yarn.js:12:9)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:279:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:752:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @angular/devkit-repo@0.0.0 preinstall: `node ./tools/yarn/check-yarn.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @angular/devkit-repo@0.0.0 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/rohit/.npm/_logs/2018-10-05T18_18_04_521Z-debug.log

The solution was to instead run yarn.

Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please amend the commit message. Please see ours contribution guidlines.

https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md

@rsarky rsarky force-pushed the fix-angular-cli-development-packages-install branch from 1794c46 to 8e7d9fa Compare October 5, 2018 19:05
@rsarky
Copy link
Contributor Author

rsarky commented Oct 5, 2018

@alan-agius4 Commit message changed as requested.

@clydin clydin added the target: major This PR is targeted for the next major release label Oct 5, 2018
@alan-agius4 alan-agius4 added target: major This PR is targeted for the next major release and removed target: major This PR is targeted for the next major release labels Oct 7, 2018
@vikerman vikerman merged commit 7d5caeb into angular:master Oct 10, 2018
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants