devops3 min read

Staged publishing and new install-time controls for npm

8 similar posts
  • npm

AI Summary

GitHub has announced general availability for npm staged publishing, requiring human maintainer approval for package releases to improve supply-chain security. Additionally, new install-source flags (--allow-file, --allow-remote, --allow-directory) have been introduced in npm CLI 11.15.0 to restrict nonregistry dependencies.

Key Takeaways

  • Staged publishing routes tarballs to a queue requiring manual 2FA approval.
  • New install flags complement --allow-git to control local, remote, and directory dependencies.
  • Requires npm CLI version 11.15.0 or newer.

Why it matters

These features provide critical supply-chain security controls for Node.js ecosystems, helping organizations mitigate risks associated with direct automated publishing and unauthorized non-registry dependencies.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.