
committed by
Alex Eagle

parent
5ede67c345
commit
7bdd9aecbd
14
tools/yarn/check-yarn.js
Normal file
14
tools/yarn/check-yarn.js
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @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/');
|
||||
}
|
Reference in New Issue
Block a user