diff --git a/aio/tools/ng-packages-installer/index.js b/aio/tools/ng-packages-installer/index.js index 38e8c8460d..a520cb3843 100644 --- a/aio/tools/ng-packages-installer/index.js +++ b/aio/tools/ng-packages-installer/index.js @@ -96,7 +96,7 @@ class NgPackagesInstaller { * Yarn will also delete the local marker file for us. */ restoreNpmDependencies() { - this._installDeps('--check-files'); + this._installDeps('--freeze-lockfile', '--check-files'); } // Protected helpers diff --git a/aio/tools/ng-packages-installer/index.spec.js b/aio/tools/ng-packages-installer/index.spec.js index fa2e14b9e1..48efc0b193 100644 --- a/aio/tools/ng-packages-installer/index.spec.js +++ b/aio/tools/ng-packages-installer/index.spec.js @@ -144,10 +144,10 @@ describe('NgPackagesInstaller', () => { }); describe('restoreNpmDependencies()', () => { - it('should run `yarn install --check-files` in the specified directory', () => { + it('should run `yarn install` in the specified directory, with the correct options', () => { spyOn(installer, '_installDeps'); installer.restoreNpmDependencies(); - expect(installer._installDeps).toHaveBeenCalledWith('--check-files'); + expect(installer._installDeps).toHaveBeenCalledWith('--freeze-lockfile', '--check-files'); }); });