mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 17:35:42 +08:00
This reverts commit fcb6dc5557.
This commit is contained in:
committed by
Joe Haddad
parent
eed708a822
commit
0e064b30ca
@@ -95,11 +95,11 @@ fi
|
||||
|
||||
if hash npm 2>/dev/null
|
||||
then
|
||||
# npm 5.0-5.4.0 is too buggy
|
||||
# npm 5 is too buggy right now
|
||||
if [ $(npm -v | head -c 1) -eq 5 ]; then
|
||||
npm i -g npm@^5.4.1
|
||||
npm i -g npm@^4.x
|
||||
fi;
|
||||
npm cache clean --force || npm cache verify
|
||||
npm cache clean || npm cache verify
|
||||
fi
|
||||
|
||||
# Prevent bootstrap, we only want top-level dependencies
|
||||
|
||||
@@ -87,11 +87,11 @@ fi
|
||||
|
||||
if hash npm 2>/dev/null
|
||||
then
|
||||
# npm 5.0-5.4.0 is too buggy
|
||||
# npm 5 is too buggy right now
|
||||
if [ $(npm -v | head -c 1) -eq 5 ]; then
|
||||
npm i -g npm@^5.4.1
|
||||
npm i -g npm@^4.x
|
||||
fi;
|
||||
npm cache clean --force || npm cache verify
|
||||
npm cache clean || npm cache verify
|
||||
fi
|
||||
|
||||
# Prevent bootstrap, we only want top-level dependencies
|
||||
|
||||
@@ -86,11 +86,11 @@ fi
|
||||
|
||||
if hash npm 2>/dev/null
|
||||
then
|
||||
# npm 5.0-5.4.0 is too buggy
|
||||
# npm 5 is too buggy right now
|
||||
if [ $(npm -v | head -c 1) -eq 5 ]; then
|
||||
npm i -g npm@^5.4.1
|
||||
npm i -g npm@^4.x
|
||||
fi;
|
||||
npm cache clean --force || npm cache verify
|
||||
npm cache clean || npm cache verify
|
||||
fi
|
||||
|
||||
# Prevent bootstrap, we only want top-level dependencies
|
||||
|
||||
Reference in New Issue
Block a user