简体   繁体   English

package.JSON文件不完整?

[英]package.JSON file Incomplete?

I have installed npm and grunt. 我已经安装了npm和grunt。 In the command line, I have navigated to my project's directory, and, initiated a package.json file. 在命令行中,我已导航到我的项目目录,并启动了一个package.json文件。 My problem is, it seems to only generate part of the file. 我的问题是,它似乎只生成文件的一部分。 It definetely generates the package.json file, but it only asks for name and version and irrespective of what I put it first presents this: 它定义生成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)

and then this: 然后这个:

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>

Have I messed up the instillation of either of these items? 我是否搞砸了其中任何一项的灌输?

I think this issue fits quite well : 我认为这个问题很合适:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM