npm init -y 是用来生成 package.json 的,可能有同学看到 Error 字样以为出错了,实际上不是,只是 package.json 里面默认的内容。
npm init -y
package.json