Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos grunt安装未请求的依赖项_Macos_Gruntjs_Npm Install - Fatal编程技术网

Macos grunt安装未请求的依赖项

Macos grunt安装未请求的依赖项,macos,gruntjs,npm-install,Macos,Gruntjs,Npm Install,当我将grunt安装到本地文件夹时,它似乎正在加载88个我没有请求的依赖项。这正常吗 如果我使用packages.json文件并执行pm安装,它不会安装grunt,而是安装其他所有内容 npm安装grunt--保存开发 npm WARN install不推荐使用“---dev”选项。改用“---only=dev”。 npm WARN saveError ENOUNT:没有这样的文件或目录,请打开“/Users/xxxx/Desktop/grunt test/package.json” /用户/

当我将grunt安装到本地文件夹时,它似乎正在加载88个我没有请求的依赖项。这正常吗

如果我使用packages.json文件并执行pm安装,它不会安装grunt,而是安装其他所有内容

npm安装grunt--保存开发
npm WARN install不推荐使用“---dev”选项。改用“---only=dev”。
npm WARN saveError ENOUNT:没有这样的文件或目录,请打开“/Users/xxxx/Desktop/grunt test/package.json”
/用户/xxxx/桌面/grunt测试
└─┬ grunt@1.0.1
├── 咖啡-script@1.10.0
├─┬ dateformat@1.0.12
│ ├── 得到-stdin@4.0.1
│ └─┬ meow@3.7.0
│   ├─┬ 骆驼壳-keys@2.1.0
│   │ └── camelcase@2.1.1
│   ├── decamelize@1.2.0
│   ├─┬ 响亮的-rejection@1.6.0
│   │ ├─┬ 目前-unhandled@0.4.1
│   │ │ └── 数组查找-index@1.0.2
│   │ └── 信号-exit@3.0.2
│   ├── 地图-obj@1.0.1
│   ├── minimist@1.2.0
│   ├─┬ 规范化包-data@2.3.5
│   │ ├── 托管git-info@2.2.0
│   │ ├─┬ 它是内置的-module@1.0.0
│   │ │ └── 内置-modules@1.1.1
│   │ ├── semver@5.3.0
│   │ └─┬ 验证npm包-license@3.0.1
│   │   ├─┬ spdx-correct@1.0.2
│   │   │ └── spdx许可证-ids@1.2.2
│   │   └── spdx表达-parse@1.0.4
│   ├── 反对-assign@4.1.1
│   ├─┬ 阅读包装-up@1.0.1
│   │ ├─┬ 发现-up@1.1.2
│   │ │ ├── 路径-exists@2.1.0
│   │ │ └─┬ 小指-promise@2.0.1
│   │ │   └── pinkie@2.0.4
│   │ └─┬ 阅读-pkg@1.1.0
│   │   ├─┬ 加载json-file@1.1.0
│   │   │ ├── 优美的-fs@4.1.11
│   │   │ ├─┬ 解析-json@2.2.0
│   │   │ │ └─┬ 错误-ex@1.3.1
│   │   │ │   └── 是-arrayish@0.2.1
│   │   │ ├── pify@2.3.0
│   │   │ └─┬ 剥落-bom@2.0.0
│   │   │   └── 是-utf8@0.2.1
│   │   └── 路径-type@1.1.0
│   ├─┬ redent@1.0.0
│   │ ├─┬ 缩进-string@2.1.0
│   │ │ └─┬ repeating@2.0.1
│   │ │   └─┬ 是-finite@1.0.2
│   │ │     └── 号码是-nan@1.0.1
│   │ └── 剥落-indent@1.0.1
│   └── 修剪-newlines@1.0.0
├── eventemitter2@0.4.14
├── exit@0.1.2
├─┬ 芬杜普-sync@0.3.0
│ └── glob@5.0.15
├─┬ glob@7.0.6
│ ├── 财政司司长。realpath@1.0.0
│ ├─┬ inflight@1.0.6
│ │ └── wrappy@1.0.2
│ ├── inherits@2.0.3
│ └── once@1.4.0
├─┬ 咕噜声-cli@1.2.0
│ └── resolve@1.1.7
├── 呼噜声-options@1.1.0
├─┬ 咕哝的遗产-log@1.0.0
│ ├── colors@1.1.2
│ ├─┬ grunt遗留日志-utils@1.0.0
│ │ ├─┬ chalk@1.1.3
│ │ │ ├── ansi-styles@2.2.1
│ │ │ ├── 逃逸串-regexp@1.0.5
│ │ │ ├─┬ 有-ansi@2.0.0
│ │ │ │ └── ansi-regex@2.1.1
│ │ │ ├── 剥落-ansi@3.0.1
│ │ │ └── 支持-color@2.0.0
│ │ └── lodash@4.3.0
│ ├── hooker@0.2.3
│ ├── lodash@3.10.1
│ └── 强调。string@3.2.3
├─┬ 咕哝的遗产-util@1.0.0
│ ├── async@1.5.2
│ ├── getobject@0.1.0
│ ├── lodash@4.3.0
│ └─┬ which@1.2.12
│   └── isexe@1.1.2
├── iconv-lite@0.4.15
├─┬ js-yaml@3.5.5
│ ├─┬ argparse@1.0.9
│ │ └── 斯普林特-js@1.0.3
│ └── esprima@2.7.3
├─┬ minimatch@3.0.3
│ └─┬ 支架-expansion@1.1.6
│   ├── 平衡的-match@0.4.2
│   └── 海螺-map@0.0.1
├─┬ nopt@3.0.6
│ └── abbrev@1.1.0
├── 路径是-absolute@1.0.1
└── rimraf@2.2.8
npm WARN enoint enoint:没有这样的文件或目录,打开“/Users/xxxxx/Desktop/grunt test/package.json”
npm警告咕噜测试无说明
npm WARN grunt test No存储库字段。
npm WARN grunt测试无自述数据

npm WARN grunt test No许可证字段。
是,这是正常行为。它还安装了“grunt”本身所依赖的包,然后递归地安装它的依赖项等等..NPM安装包的方式有什么变化吗?我觉得上次创建项目时,node_modules目录中的文件夹更少。是的,这是正常行为。它还安装了“grunt”本身所依赖的包,然后递归地安装它的依赖项等等..NPM安装包的方式有什么变化吗?我觉得上次创建项目时,node_modules目录中的文件夹更少。