将Sinch JS RTC安装为npm包时出错

时间:2015-11-29 10:06:52

标签: node.js sinch

我需要从后端服务器使用Sinch IM功能,我正在尝试将sinch-rtc安装为node.js包。使用命令时出现以下错误:npm install sinch-rtc --save

这是Debug Log

如果我错过了什么,请纠正我。感谢。

class Base {
     double baseprice;
     public void setBaseprice(int bp) {
     baseprice = bp;
     }
     public double getBaseprice() {
     return baseprice;
     }
}

class ID{
     int agentId;
        ID(int Id)  {
        this.agentId=Id;
       }
 }
class Agent{
            String agentName;
            Agent(String name){
            this.agentName=name;
  }
}
class AreaMinor extends Base {
double sides;
              public AreaMinor(int s) {
              sides = s;
          }  
public void area() {
    double sum = sides*sides*(4+Math.sqrt(3))/4;
    double area = sum*baseprice;
    System.out.print(area);
 }  
}

public class Main  {
 public static void main(String args[]) {
java.util.Scanner kbd = new java.util.Scanner(System.in);

 System.out.print("Enter your lot type ");
 lot = kbd.nextInt();

 if(lot == 1) {
  System.out.print("Enter the Sides ");
  int side = kbd.nextInt();
  AreaMinor am = new AreaMinor(side);
  am.area();                //why does it this line print 0

1 个答案:

答案 0 :(得分:1)

你遇到的问题是node-gyp对你的系统不起作用。 按照node-gyp https://github.com/nodejs/node-gyp上的说明进行操作,并尝试仅安装node-gyp。