angular-cli/tools/yarn/check-yarn.js
Charles Lyding b06ee93e07 build: add check yarn preinstall script
Direct copy of the script from core.
2018-10-03 16:36:53 -07:00

15 lines
408 B
JavaScript

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
'use strict';
if (process.env.npm_execpath.indexOf('yarn') === -1) {
throw new Error(
'Please use Yarn instead of NPM to install dependencies. See: https://yarnpkg.com/lang/en/docs/install/');
}