You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user/for-beginners.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ You need to sign up for a [GitHub account](https://github.com/) if you do not al
43
43
44
44
> Note: Travis only runs a build on the commits you push after adding the repository to Travis.
45
45
46
-
Wait for Travis CI to run a build on your fork of the `travis-broken-example` repository, check the [build status](https://travis-ci.org/repositories) and notice that the build fails. (Travis CI sends you an email when this happens)
46
+
Wait for Travis CI to run a build on your fork of the `travis-broken-example` repository, check the [build status](https://travis-ci.org) and notice that the build fails. (Travis CI sends you an email when this happens)
47
47
48
48
6. Fix the code by making sure that `2=1+1` in `Test.php`, commit and push to GitHub. This time, the build does not fail.
Copy file name to clipboardExpand all lines: user/languages/javascript-with-nodejs.md
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,16 @@ Travis CI uses [npm](http://npmjs.org/) to install your project dependencies:
83
83
npm install
84
84
```
85
85
86
-
> Note that there are no npm packages installed by default in the Travis CI environment , your dependencies are downloaded and installed every build.
86
+
> Note that there are no npm packages installed by default in the Travis CI environment, your dependencies are downloaded and installed during each build.
87
+
88
+
#### Using a specific npm version
89
+
90
+
Add the following to the [`before_install` phase](/user/customizing-the-build/#The-Build-Lifecycle) of `.travis.yml`:
91
+
92
+
```yaml
93
+
before_install:
94
+
- npm i -g npm@version-number
95
+
```
87
96
88
97
#### Caching with `npm`
89
98
@@ -113,6 +122,17 @@ Note that `yarn` requires Node.js version 4 or later.
113
122
If the job does not meet this requirement, `npm install` is used
114
123
instead.
115
124
125
+
126
+
#### Using a specific yarn version
127
+
128
+
Add the following to the [`before_install` phase](/user/customizing-the-build/#The-Build-Lifecycle) of `.travis.yml`:
0 commit comments