在启动松露项目时,如何解决下面的问题?
YuweideMacBook-Air:vantoken yuwei$ truffle version
Truffle v4.1.4 (core: 4.1.4)
Solidity v0.4.21 (solc-js)
YuweideMacBook-Air:vantoken yuwei$ **truffle init**
Downloading...
Error: Something already exists at the destination. Please unbox in an empty folder. Stopping to prevent overwriting data.
at /usr/local/lib/node_modules/truffle/build/webpack:/~/truffle-box/lib/utils/unbox.js:22:1
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)发布于 2019-08-21 16:04:35
由于您正在处理Truffle v4,请在一个空文件夹中尝试以下命令:
npm init -y
truffle init您也可以使用truffle init --force。看看这个块菌文档。
您可能希望升级到v5,因为v5也允许您在非空文件夹中运行truffle init。
https://ethereum.stackexchange.com/questions/74114
复制相似问题