The nginx docker image doesn't contain npm. You'll need to use node:latest or node:alpine which contains npm.
nginx
npm
node:latest
node:alpine