这个问题当然是看
npmjs.com 官方的文档啦
以下参照
https://docs.npmjs.com/misc/faqIs it 'npm' or 'NPM' or 'Npm'?
npm should never be capitalized unless it is being displayed in a location that is customarily all-caps (such as the title of man pages.)
npm 不应该写成 Npm 或 NPM
If 'npm' is an acronym, why is it never capitalized?
Contrary to the belief of many, "npm" is not in fact an abbreviation for "Node Package Manager". It is a recursive bacronymic abbreviation for "npm is not an acronym". (If it was "ninaa", then it would be an acronym, and thus incorrectly named.)
楼上有人说 npm 是 "Node package manager"。哈,这是不对的。npm 是 “npm is not an acronym” (npm 不是一个首字母缩写)的 recursive bacronymic 缩写形式,而不是首字母缩写。npm 与 Node.js 是独立的,两者谁都不依赖谁。
npm 与 Node.js 的关系是:
npm 是 Node.js 默认的包管理器,从 Node.js 0.6.3 开始,npm 集成到了 Node.js 的安装包里面。