Skip to content

Instantly share code, notes, and snippets.

@gcollazo
Last active April 12, 2018 11:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gcollazo/93853987c5e1fa362494315478cd0608 to your computer and use it in GitHub Desktop.
Save gcollazo/93853987c5e1fa362494315478cd0608 to your computer and use it in GitHub Desktop.
Testing npm5
# curl -s https://gist.githubusercontent.com/gcollazo/93853987c5e1fa362494315478cd0608/raw/01-run.sh | bash
echo ""
mkdir testnpmyanrnpm5
cd testnpmyanrnpm5
curl -s https://gist.githubusercontent.com/gcollazo/93853987c5e1fa362494315478cd0608/raw/npm-test.sh | bash
curl -s https://gist.githubusercontent.com/gcollazo/93853987c5e1fa362494315478cd0608/raw/yarn-test.sh | bash
cd ..
rm -rf testnpmyanrnpm5
echo "=================== npm ==================="
npm --version
echo "==========================================="
npm cache clean > /dev/null 2>&1
npm init --yes > /dev/null 2>&1
npm install --save express > /dev/null 2>&1
npm install --save dotenv > /dev/null 2>&1
npm install --save lodash > /dev/null 2>&1
npm shrinkwrap > /dev/null 2>&1
find node_modules -type f \( -exec shasum "$PWD"/{} \; \) | shasum
echo "-------------------------------------------"
rm -rf node_modules
npm cache clean > /dev/null 2>&1
npm install > /dev/null 2>&1
find node_modules -type f \( -exec shasum "$PWD"/{} \; \) | shasum
echo "-------------------------------------------"
rm -rf node_modules
rm package* npm-shrinkwrap.json
echo ""
echo "=================== yarn =================="
yarn --version
echo "==========================================="
npm cache clean > /dev/null 2>&1
yarn cache clean > /dev/null 2>&1
yarn init --yes > /dev/null 2>&1
yarn add express > /dev/null 2>&1
yarn add dotenv > /dev/null 2>&1
yarn add lodash > /dev/null 2>&1
find node_modules -type f \( -exec shasum "$PWD"/{} \; \) | shasum
echo "-------------------------------------------"
rm -rf node_modules
npm cache clean > /dev/null 2>&1
yarn cache clean > /dev/null 2>&1
yarn > /dev/null 2>&1
find node_modules -type f \( -exec shasum "$PWD"/{} \; \) | shasum
echo "-------------------------------------------"
rm -rf node_modules
rm package* yarn.lock
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment