Added checks for sandbox and npm package installs