Instead of install dbdiff with -g (which requires sudo privileges for many of us), how about this? - mkdir somedir - cd somedir - npm init -y - npm install dbdiff - npx dbdiff -l safe ... Note that is npx, not npm, on the last line.