diff --git a/package.json b/package.json index 9424c3b..588b05a 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "scripts" ], "scripts": { - "postinstall": "node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"", + "postinstall": "which node > /dev/null && node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"", "release": "npx bumpp --tag --commit --push && npm publish" }, "peerDependencies": {