[npm] Use /tmp as temporary directory.