首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么我不能安装googleapis?

为什么我不能安装googleapis?
EN

Stack Overflow用户
提问于 2016-04-23 18:15:25
回答 1查看 231关注 0票数 0

我试图通过npm install googleapis安装googleapis,但有些地方出了问题。

错误堆栈:

代码语言:javascript
复制
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit     at F (C:\Program Files\nodejs\node_modules\npm\node_mo
dules\which\which.js:73:28)
npm WARN addRemoteGit     at E (C:\Program Files\nodejs\node_modules\npm\node_mo
dules\which\which.js:76:29)
npm WARN addRemoteGit     at C:\Program Files\nodejs\node_modules\npm\node_modul
es\which\which.js:84:16
npm WARN addRemoteGit     at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit  git+https://github.com/rynomad/jsbn.git resetting remote
C:\Users\Valentine11\AppData\Roaming\npm-cache\_git-remotes\https-github-com-ryn
omad-jsbn-git-fe54fe73 because of error: { [Error: not found: git] code: 'ENOGIT
' }
npm ERR! git clone --template=C:\Users\Valentine11\AppData\Roaming\npm-cache\_gi
t-remotes\_templates --mirror https://github.com/rynomad/jsbn.git C:\Users\Valen
tine11\AppData\Roaming\npm-cache\_git-remotes\https-github-com-rynomad-jsbn-git-
fe54fe73: undefined
npm ERR! git clone --template=C:\Users\Valentine11\AppData\Roaming\npm-cache\_gi
t-remotes\_templates --mirror https://github.com/rynomad/jsbn.git C:\Users\Valen
tine11\AppData\Roaming\npm-cache\_git-remotes\https-github-com-rynomad-jsbn-git-
fe54fe73: undefined
npm WARN optional dep failed, continuing ecc-jsbn@0.0.1
googleapis@5.2.1 node_modules\googleapis
├── async@1.5.2
├── string-template@1.0.0
├── url@0.11.0 (punycode@1.3.2, querystring@0.2.0)
├── gapitoken@0.1.5 (jws@3.0.0)
├── request@2.72.0 (aws-sign2@0.6.0, forever-agent@0.6.1, tunnel-agent@0.4.2, oa
uth-sign@0.8.1, is-typedarray@1.0.0, caseless@0.11.0, stringstream@0.0.5, isstre
am@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, form-data@1.0.0-rc4, tough-co
okie@2.2.2, node-uuid@1.4.7, qs@6.1.0, combined-stream@1.0.5, mime-types@2.1.10,
 aws4@1.3.2, hawk@3.1.3, bl@1.1.2, http-signature@1.1.1, har-validator@2.0.6)
└── google-auth-library@0.9.7 (lodash.noop@3.0.1, async@1.4.2, string-template@0
.2.1, jws@3.0.0, request@2.60.0, gtoken@1.2.0)

我已经安装了一些软件包,一切都是正确的。我做错什么了?我有Git (和Git分机)。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-04-23 18:45:54

您需要在执行npm命令的环境(控制台、bash等)中的路径上设置Git二进制文件。你会在这篇文章中找到答案:On Gitbash - Bower : ENOGIT git is not installed or not in the PATH

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36814648

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档