
You need backport repos enabled to provide an up2date nodejs and npm.

It seems that you have to create your chroot with this enabled. It is not possible to specify this for a specific build.

I created my chroot with the following:

DIST=stretch sudo pbuilder create --othermirror "deb http://deb.debian.org/debian stretch-backports main" --distribution stretch --mirror http://deb.debian.org/debian

The build also requires network access to be able to pull needed modules of internet :(

To build i issue something like:

DIST=stretch pdebuild -- --use-network yes

