Skip to content

Commit

Permalink
Install npm@3 if npm version is npm 1 or 2
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Jul 9, 2017
1 parent 77fc157 commit 3fcf921
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -3,12 +3,14 @@ language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
- "4"
- "5"
- "6"
- "7"
- "8"
- "iojs"
before_install:
- if [[ `npm -v` =~ ^[1-2] ]]; then npm i -g npm@3; fi
before_script:
- npm uninstall grunt # https://github.com/npm/npm/issues/3958
matrix:
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Expand Up @@ -16,6 +16,7 @@ platform:
- x64
install:
- ps: Install-Product node $env:nodejs_version
- if [[ `npm -v` =~ ^[1-2] ]]; then npm i -g npm@3; fi
- npm install
test_script:
# Output useful info for debugging.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -59,7 +59,7 @@
"eslint-config-grunt": "~1.0.1",
"grunt-contrib-nodeunit": "~1.0.0",
"grunt-contrib-watch": "~1.0.0",
"grunt-eslint": "~20.0.0",
"grunt-eslint": "~18.1.0",
"semver": "5.3.0",
"shelljs": "~0.7.8",
"temporary": "~0.0.4",
Expand Down

0 comments on commit 3fcf921

Please sign in to comment.