`prepare` supersedes `prepublish`
This will also helps with install directly via git,
e.g. `npm i -g git://github.com/appium/appium`
MODIFY
package.json
package.json
},
"scripts": {
"clean": "rm -rf node_modules && rm -f package-lock.json && npm install",
- "prepublish": "gulp prepublish",
+ "prepare": "gulp prepublish",
"prepublishOnly": "npm run prune-shrinkwrap && gulp fixShrinkwrap",
"postpublish": "npm run restore-shrinkwrap",
"prune-shrinkwrap": "!(test -e npm-shrinkwrap.json) || (npm ci --production --ignore-scripts && npm shrinkwrap && npm install --only=dev --no-shrinkwrap)",

`prepare` supersedes `prepublish` (#12967)

This will also helps with install directly via git,
e.g. `npm i -g git://github.com/appium/appium`