how to put env in script npm code example
Example 1: How to run bash script in python
import subprocess
print "start"
subprocess.call("sleep.sh")
print "end"
Example 2: npm run custom script
# In your package.json you defined a custom script "custom"
# You can run it using
npm run custom