|
93 | 93 |
|
94 | 94 | if hash npm 2>/dev/null
|
95 | 95 | then
|
96 |
| - # npm 5 is too buggy right now |
97 |
| - if [ $(npm -v | head -c 1) -eq 5 ]; then |
98 |
| - npm i -g npm@^4.x |
99 |
| - fi; |
| 96 | + npm i -g npm@latest |
100 | 97 | npm cache clean || npm cache verify
|
101 | 98 | fi
|
102 | 99 |
|
@@ -137,39 +134,39 @@ npm install "$cli_path"
|
137 | 134 | # ******************************************************************************
|
138 | 135 |
|
139 | 136 | cd "$temp_app_path"
|
140 |
| -create_react_app --scripts-version=0.4.0 test-app-version-number |
| 137 | +create_react_app --scripts-version=1.0.17 test-app-version-number |
141 | 138 | cd test-app-version-number
|
142 | 139 |
|
143 | 140 | # Check corresponding scripts version is installed.
|
144 | 141 | exists node_modules/react-scripts
|
145 |
| -grep '"version": "0.4.0"' node_modules/react-scripts/package.json |
| 142 | +grep '"version": "1.0.17"' node_modules/react-scripts/package.json |
146 | 143 | checkDependencies
|
147 | 144 |
|
148 | 145 | # ******************************************************************************
|
149 | 146 | # Test --use-npm flag
|
150 | 147 | # ******************************************************************************
|
151 | 148 |
|
152 | 149 | cd "$temp_app_path"
|
153 |
| -create_react_app --use-npm --scripts-version=0.4.0 test-use-npm-flag |
| 150 | +create_react_app --use-npm --scripts-version=1.0.17 test-use-npm-flag |
154 | 151 | cd test-use-npm-flag
|
155 | 152 |
|
156 | 153 | # Check corresponding scripts version is installed.
|
157 | 154 | exists node_modules/react-scripts
|
158 | 155 | [ ! -e "yarn.lock" ] && echo "yarn.lock correctly does not exist"
|
159 |
| -grep '"version": "0.4.0"' node_modules/react-scripts/package.json |
| 156 | +grep '"version": "1.0.17"' node_modules/react-scripts/package.json |
160 | 157 | checkDependencies
|
161 | 158 |
|
162 | 159 | # ******************************************************************************
|
163 | 160 | # Test --scripts-version with a tarball url
|
164 | 161 | # ******************************************************************************
|
165 | 162 |
|
166 | 163 | cd "$temp_app_path"
|
167 |
| -create_react_app --scripts-version=https://registry.npmjs.org/react-scripts/-/react-scripts-0.4.0.tgz test-app-tarball-url |
| 164 | +create_react_app --scripts-version=https://registry.npmjs.org/react-scripts/-/react-scripts-1.0.17.tgz test-app-tarball-url |
168 | 165 | cd test-app-tarball-url
|
169 | 166 |
|
170 | 167 | # Check corresponding scripts version is installed.
|
171 | 168 | exists node_modules/react-scripts
|
172 |
| -grep '"version": "0.4.0"' node_modules/react-scripts/package.json |
| 169 | +grep '"version": "1.0.17"' node_modules/react-scripts/package.json |
173 | 170 | checkDependencies
|
174 | 171 |
|
175 | 172 | # ******************************************************************************
|
|
0 commit comments