npm init error: Invalid name: "donn&jul"
npm init error: Invalid name: "donn&jul"
我的 npm
版本是 2.5.1
,我的 node
版本是 0.12.0
。当我尝试 运行 npm init
时,出现以下错误:
npm ERR! Invalid name: "donn&jul"
这是屏幕截图:。
为什么会这样?
From the official NPM reference:
The name ends up being part of a URL, an argument on the command line, and a folder name. Therefore, the name can't contain any non-URL-safe characters.
我认为 &
不 url 安全。
我的 npm
版本是 2.5.1
,我的 node
版本是 0.12.0
。当我尝试 运行 npm init
时,出现以下错误:
npm ERR! Invalid name: "donn&jul"
这是屏幕截图:
为什么会这样?
From the official NPM reference:
The name ends up being part of a URL, an argument on the command line, and a folder name. Therefore, the name can't contain any non-URL-safe characters.
我认为 &
不 url 安全。