use npm install

I changed `npm run build` to `npm install` and instead using the `postinstall` for the build step, which is automatically run by npm after the dependencies are installed.