web3 npm安装失败

时间:2017-06-29 22:12:32

标签: node.js npm web3

我似乎在努力让npm安装web3

使用的命令:

  

npm install web3

错误:

  

npm ERR!路径必须是字符串。收到未定义的

日志:

import Tkinter as tk

class Server(tk.Frame):

def __init__(self, master = None):

    tk.Frame.__init__(self, master)

    self.grid(sticky = tk.N + tk.S + tk.E + tk.W)
    self.createWidgets()

def createWidgets(self):

    top = self.winfo_toplevel()

    top.rowconfigure(0, weight = 1)

    top.columnconfigure(0, weight = 1)

    self.rowconfigure(0, weight = 1)

    self.columnconfigure(0, weight = 1)

    self.quitButton = tk.Button(self, text = "Quit", command = self.quit)

    self.quitButton.grid(row = 0, column = 0, sticky = tk.N + tk.S)

    self.newButton = tk.Button(self, text = "New", command = self.makeCheckButtonFlash)

    self.newButton.grid(row = 0, column = 1, sticky = tk.N + tk.S)

    self.checkButton = tk.Checkbutton(self, text = "Check Button", activeforeground = "red") 

    self.checkButton.grid(row = 1, column = 0)

def makeCheckButtonFlash(self):
    print "makeCheckButtonFlash"
    self.checkButton.flash()

app = Server()

app.master.title("Server")

app.mainloop()

我也试过用root用户运行它们。任何帮助表示赞赏。

由于

1 个答案:

答案 0 :(得分:0)

问题可能来自使用测试版的web3,目前还不稳定,目前正处于大量开发阶段,你有两种选择之一,

要么使用0.19的稳定版本,要么就是这样。

我建议尝试的另一件事是npm --save,以便在项目中将包保存在本地