- Use /usr/bin/npm full path instead of PATH export (nvm fix) - Add --cache flag to keep npm cache in srcdir - Use jq for thorough npm metadata cleanup - Fix directory permissions and file ownership - Install LICENSE file