『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1608|回复: 5

[技术探讨] 在windows7上安装了ha和nodered,无法安装插件

[复制链接]

22

主题

519

帖子

1608

积分

金牌会员

Rank: 6Rank: 6

积分
1608
金钱
1089
HASS币
10
发表于 2019-5-9 09:14:58 | 显示全部楼层 |阅读模式
不知道 有没有同样在windows下用智能家居系统的
小白在nodered下安装 node-red-contrib-home-assistant 出错 ,
node-red 版本:10.15.3
NPM版本:6.4.1
日志如下


-----------------------------------------------------------
2019-05-09T00:56:17.237Z 安装 : node-red-contrib-home-assistant 0.3.2

2019-05-09T00:56:17.247Z npm.cmd install --no-audit --no-update-notifier --save --save-prefix="~" --production [email][email protected][/email]
2019-05-09T00:56:24.505Z [err] npm
2019-05-09T00:56:24.505Z [err]  
2019-05-09T00:56:24.505Z [err] WARN deprecated
2019-05-09T00:56:24.505Z [err]  [email][email protected][/email]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2019-05-09T00:56:24.552Z [err] npm ERR! code ENOGIT
2019-05-09T00:56:24.567Z [err] npm
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] ERR!
2019-05-09T00:56:24.567Z [err]  Error while executing:
2019-05-09T00:56:24.567Z [err] npm
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] ERR!
2019-05-09T00:56:24.567Z [err]  undefined ls-remote -h -t ssh://[email protected]/node-red/node-red.git
2019-05-09T00:56:24.567Z [err] npm
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] ERR!
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] npm
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] ERR!
2019-05-09T00:56:24.567Z [err]  undefined
2019-05-09T00:56:24.567Z [err] npm
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] ERR!
2019-05-09T00:56:24.567Z [err]  No git binary found in $PATH
2019-05-09T00:56:24.567Z [err] npm
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] ERR!
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] npm
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] ERR!
2019-05-09T00:56:24.567Z [err]  Failed using git.
2019-05-09T00:56:24.567Z [err] npm
2019-05-09T00:56:24.567Z [err]  
2019-05-09T00:56:24.567Z [err] ERR!
2019-05-09T00:56:24.567Z [err]  Please check if you have git installed and in your PATH.
2019-05-09T00:56:25.238Z [err] 
2019-05-09T00:56:25.238Z [err] npm ERR! A complete log of this run can be found in:
2019-05-09T00:56:25.238Z [err] npm 
2019-05-09T00:56:25.238Z [err] ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-05-09T00_56_24_567Z-debug.log
2019-05-09T00:56:25.269Z rc=1



2019-05-09T00_56_24_567Z-debug.log的内容
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   '--no-audit',
1 verbose cli   '--no-update-notifier',
1 verbose cli   '--save',
1 verbose cli   '--save-prefix="~"',
1 verbose cli   '--production',
1 verbose cli   '[email protected]' ]
2 info using [email][email protected][/email]
3 info using [email][email protected][/email]
4 verbose npm-session 94689d95a627ddcf
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 [url]https://registry.npmjs.org/node-red-contrib-home-assistant[/url] 62ms (from cache)
8 silly pacote version manifest for [email][email protected][/email] fetched in 125ms
9 timing stage:loadCurrentTree Completed in 1654ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 31ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email][email protected][/email] checking installable status
17 silly fetchPackageMetaData error for node-red@github:node-red/node-red#0.18.2 Error while executing:
17 silly fetchPackageMetaData undefined ls-remote -h -t ssh://[email protected]/node-red/node-red.git
17 silly fetchPackageMetaData
17 silly fetchPackageMetaData undefined
17 silly fetchPackageMetaData No git binary found in $PATH
18 http fetch GET 200 [url]https://registry.npmjs.org/is-string[/url] 312ms (from cache)
19 http fetch GET 200 [url]https://registry.npmjs.org/clone-deep[/url] 327ms (from cache)
20 http fetch GET 200 [url]https://registry.npmjs.org/node-home-assistant[/url] 312ms (from cache)
21 http fetch GET 200 [url]https://registry.npmjs.org/lodash.merge[/url] 312ms (from cache)
22 http fetch GET 200 [url]https://registry.npmjs.org/time-ago[/url] 218ms (from cache)
23 http fetch GET 200 [url]https://registry.npmjs.org/serialize-javascript[/url] 234ms (from cache)
24 http fetch GET 200 [url]https://registry.npmjs.org/selectn[/url] 265ms (from cache)
25 http fetch GET 200 [url]https://registry.npmjs.org/lowdb[/url] 343ms (from cache)
26 silly pacote range manifest for is-string@^1.0.4 fetched in 374ms
27 silly resolveWithNewModule [email][email protected][/email] checking installable status
28 silly pacote range manifest for clone-deep@^3.0.1 fetched in 374ms
29 silly resolveWithNewModule [email][email protected][/email] checking installable status
30 silly pacote version manifest for [email][email protected][/email] fetched in 359ms
31 silly resolveWithNewModule [email][email protected][/email] checking installable status
32 silly pacote range manifest for time-ago@^0.2.1 fetched in 265ms
33 silly resolveWithNewModule [email][email protected][/email] checking installable status
34 silly pacote range manifest for serialize-javascript@^1.4.0 fetched in 281ms
35 silly resolveWithNewModule [email][email protected][/email] checking installable status
36 silly pacote range manifest for lodash.merge@^4.6.0 fetched in 359ms
37 silly resolveWithNewModule [email][email protected][/email] checking installable status
38 silly pacote range manifest for selectn@^1.1.2 fetched in 297ms
39 silly resolveWithNewModule [email][email protected][/email] checking installable status
40 silly pacote range manifest for lowdb@^1.0.0 fetched in 375ms
41 silly resolveWithNewModule [email][email protected][/email] checking installable status
42 http fetch GET 200 [url]https://registry.npmjs.org/date-fns[/url] 390ms (from cache)
43 http fetch GET 200 [url]https://registry.npmjs.org/joi[/url] 405ms (from cache)
44 silly pacote range manifest for date-fns@^1.28.5 fetched in 421ms
45 silly resolveWithNewModule [email][email protected][/email] checking installable status
46 silly pacote range manifest for joi@^13.1.1 fetched in 421ms
47 warn deprecated [email][email protected][/email]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
48 silly resolveWithNewModule [email][email protected][/email] checking installable status
49 timing stage:rollbackFailedOptional Completed in 0ms
50 timing stage:runTopLevelLifecycles Completed in 2169ms
51 silly saveTree [email][email protected][/email]
51 silly saveTree +-- [email][email protected][/email]
51 silly saveTree | `-- [email][email protected][/email]
51 silly saveTree |   +-- [email][email protected][/email]
51 silly saveTree |   | `-- [email][email protected][/email]
51 silly saveTree |   `-- [email][email protected][/email]
51 silly saveTree `-- [email][email protected][/email]
51 silly saveTree   +-- [email][email protected][/email]
51 silly saveTree   +-- [email][email protected][/email]
51 silly saveTree   +-- [email][email protected][/email]
51 silly saveTree   +-- [email][email protected][/email]
51 silly saveTree   +-- [email][email protected][/email]
51 silly saveTree   +-- [email][email protected][/email]
51 silly saveTree   +-- [email][email protected][/email]
51 silly saveTree   +-- [email][email protected][/email]
51 silly saveTree   +-- [email][email protected][/email]
51 silly saveTree   `-- [email][email protected][/email]
52 verbose stack Error: No git binary found in $PATH
52 verbose stack     at checkGit (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\util\git.js:246:17)
52 verbose stack     at spawnGit (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\util\git.js:204:10)
52 verbose stack     at pinflight (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\util\git.js:131:12)
52 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\promise-inflight\inflight.js:29:24
52 verbose stack     at Promise._execute (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\debuggability.js:303:9)
52 verbose stack     at Promise._resolveFromExecutor (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:483:18)
52 verbose stack     at new Promise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:79:10)
52 verbose stack     at _inflight (C:\Program Files\nodejs\node_modules\npm\node_modules\promise-inflight\inflight.js:28:25)
52 verbose stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\promise-inflight\inflight.js:22:14
52 verbose stack     at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
52 verbose stack     at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
52 verbose stack     at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
52 verbose stack     at Promise._settlePromiseCtx (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:606:10)
52 verbose stack     at Async._drainQueue (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:138:12)
52 verbose stack     at Async._drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
52 verbose stack     at Immediate.Async.drainQueues [as _onImmediate] (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
53 verbose cwd C:\Users\Administrator\.node-red
54 verbose Windows_NT 6.1.7601
55 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--no-audit" "--no-update-notifier" "--save" "--save-prefix="~"" "--production" "[email protected]"
56 verbose node v10.15.3
57 verbose npm  v6.4.1
58 error code ENOGIT
59 error Error while executing:
59 error undefined ls-remote -h -t ssh://[email protected]/node-red/node-red.git
59 error
59 error undefined
59 error No git binary found in $PATH
60 error Failed using git.
60 error Please check if you have git installed and in your PATH.
61 verbose exit [ 1, true ]



回复

使用道具 举报

23

主题

1335

帖子

6581

积分

超级版主

Rank: 8Rank: 8

积分
6581
金钱
5221
HASS币
100

教程狂人

发表于 2019-5-9 09:46:57 | 显示全部楼层
虽然说windows也支持,但怎么说windows兼容性比linux还是差很多的然后node和npm很多情况是版本兼容的问题,我看你的版本还是比较新的
回复

使用道具 举报

22

主题

519

帖子

1608

积分

金牌会员

Rank: 6Rank: 6

积分
1608
金钱
1089
HASS币
10
 楼主| 发表于 2019-5-9 10:00:47 | 显示全部楼层
natic 发表于 2019-5-9 09:46
虽然说windows也支持,但怎么说windows兼容性比linux还是差很多的然后node和npm很多情况是版本兼容的问题, ...

那看样子 win下还不好折腾
回复

使用道具 举报

23

主题

1335

帖子

6581

积分

超级版主

Rank: 8Rank: 8

积分
6581
金钱
5221
HASS币
100

教程狂人

发表于 2019-5-9 10:04:41 | 显示全部楼层
pigcais 发表于 2019-5-9 10:00
那看样子 win下还不好折腾

好消息是最新版的windows内置完整linux了
回复

使用道具 举报

22

主题

519

帖子

1608

积分

金牌会员

Rank: 6Rank: 6

积分
1608
金钱
1089
HASS币
10
 楼主| 发表于 2019-5-9 10:17:28 | 显示全部楼层
natic 发表于 2019-5-9 10:04
好消息是最新版的windows内置完整linux了


现在还是最习惯用windows7  
而且老电脑 新的也装不了
电脑在家里完全要被淘汰了
回复

使用道具 举报

23

主题

1335

帖子

6581

积分

超级版主

Rank: 8Rank: 8

积分
6581
金钱
5221
HASS币
100

教程狂人

发表于 2019-5-9 10:56:04 | 显示全部楼层
pigcais 发表于 2019-5-9 10:17
现在还是最习惯用windows7  
而且老电脑 新的也装不了
电脑在家里完全要被淘汰了 ...

linux很好学的,基本命令就行了,老电脑装没有桌面linux性能好很多
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-15 17:58 , Processed in 0.126296 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表