Files
arduino-ide/electron/packager/conf-node-gyp.sh
2020-01-08 13:09:22 +01:00

12 lines
349 B
Bash
Executable File

#!/bin/sh
npm install --global node-gyp@6.0.1
if [ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]; then
npm config set node_gyp "`npm prefix -g`\node_modules\node-gyp\bin\node-gyp.js"
else
npm config set node_gyp "`npm prefix -g`/lib/node_modules/node-gyp/bin/node-gyp.js"
fi
echo "npm config get node_gyp -> `npm config get node_gyp`"