I’m trying to test the speed improvements of Yarn vs npm.
In this project, with npm I was using the following file:
machine: node: version: 6.5.0 test: override: - ng test --watch=false
Now, following the docs, trying to use Yarn, I’m using this config in circle.yml
machine: pre: - mkdir ~/.yarn-cache node: version: 6.5.0 dependencies: pre: - sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list - sudo apt-get update -qq - sudo apt-get install -y -qq yarn cache_directories: - ~/.yarn-cache override: - yarn test: override: - ng test --watch=false
But in the ng-test I get the following error:
bash: line 1: ng: command not found ng test --watch=false returned exit code 127
angular-cli is listed as a devDependency in the package.json, so the yarn command itself should install it, just as the npm install did with npm, right?