# Store the current version of NPM
NPM_VER=$(npm -v)
LATEST_NPM_VER=$(npm view npm@latest version)
echo "Running with npm@$PREV_NPM_VER"
# Clone this repo
git clone [email protected]:10hendersonm/npm-7-peerdeps-repro.git
# CD down into the example module
cd npm-7-peerdeps-repro/module-a
if [ $NPM_VER != $LATEST_NPM_VER ]; then
echo "Installing npm@latest"
npm i -g npm@$LATEST_NPM_VER
echo ""
else
echo "npm@latest already installed"
fi
echo "Installing node modules"
# This fails on [email protected]
npm i
if [ $NPM_VER != $LATEST_NPM_VER ]; then
echo ""
echo "Re-Installing NPM $NPM_VER"
npm i -g npm@$NPM_VER
fi
-
Notifications
You must be signed in to change notification settings - Fork 0
10hendersonm/npm-7-peerdeps-repro
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published