找回密码
 立即注册
搜索

互动交流 linux中安装hap-toolkit总是失败,求问大神咋回事

2
回复
1622
查看
[复制链接]

2

主题

7

帖子

45

积分

 楼主| 2019-10-25 11:41:36 显示全部楼层 |阅读模式
[root@localhost nodejs]# npm install -g hap-toolkit [..................] | fetchMetadata: sill resolveWithNewModule ansi-styles@3.2.1 /usr/local/nodejs/nodejs/bin/hap -> /usr/local/nodejs/nodejs/lib/node_modules/hap-toolkit/bin/index.js npm WARN url-loader@2.2.0 requires a peer of file-loader@* but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.1 (node_modules/hap-toolkit/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/hap-toolkit/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) + hap-toolkit@0.6.6 updated 1 package in 61.76s
回复

使用道具 举报

2019-10-26 16:31:54 显示全部楼层
这是安装成功了,WARN是警告信息,你输出下hap的版本号看下
回复

使用道具 举报

2

主题

7

帖子

45

积分

 楼主| 2019-10-31 17:15:10 显示全部楼层
vivo官方技术团队 发表于 2019-10-26 16:31 这是安装成功了,WARN是警告信息,你输出下hap的版本号看下
没有版本信息,不过这个问题不需要解决了,谢谢
回复

使用道具 举报

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