package.JSON文件不完整?

时间:2017-11-30 14:00:31

标签: json node.js gruntjs

我安装了npm和grunt。在命令行中,我已导航到项目的目录,并启动了package.json文件。我的问题是,它似乎只生成文件的一部分。它定义生成package.json文件,但它只询问名称和版本,不管我把它放在首先提出这个:

npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "Grunt Js": Tags may not have any characters that enco
deURIComponent encodes.
About to write to C:\Users\t.steiner\Desktop\Lynda Training\Grunt Js\package.jso
n:

{
  "name": "",
  "version": ""
}


Is this ok? (yes)

然后这个:

Is this ok? (yes) yes
npm ERR! Callback called more than once.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\t.steiner\AppData\Roaming\npm-cache\_logs\2017-11-30T13_58
_26_759Z-debug.log

C:\Users\t.steiner\Desktop\Lynda Training\Grunt Js>

我是否搞砸了其中任何一项的灌输?

1 个答案:

答案 0 :(得分:3)

我认为这个问题很合适:

https://github.com/npm/npm/issues/17830