tronbox unbox metacoin
Downloading...
Unpacking...
Setting up...
Error: Command failed: bash post-unpack.sh && rm post-unpack.sh && npm install
'bash' is not recognized as an internal or external command,
operable program or batch file.
at ChildProcess.exithandler (child_process.js:289:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
我已经尝试了Windows 10中的tronbox unbox metacoon命令。 如何解决上述错误?尝试命令tronbox初始化时出现相同的错误。此bash错误的可能原因是什么?
答案 0 :(得分:0)
'bash'不被识别为内部或外部命令, 可操作程序或批处理文件”
当您尝试直接在window的命令提示符下运行shell脚本时,会出现此错误。
如果在将tron的Metacoin DApp取消装箱时发生此错误,则无需担心。 Metacoin DApp将在您指定的目录中正确拆箱。
对于IDE Truffle或Tronbox ,Shell脚本基本上用于运行某些javascript文件。因此,如果您在Windows上使用松露或tronbox,则可以运行javascript文件direclty,而无需先运行shell脚本。
直接从窗口的命令提示符下运行JavaScript的解决方案:-
在编辑器中打开shell脚本,然后尝试在其中找到javascript文件的名称。现在,您可以直接从window的命令提示符下运行此javascipt文件。
您需要在Window的命令提示符中使用以下命令(先决条件:-node.js已安装在您的系统中:-
节点filename.js
我已经为IDE,松露和tronbox都尝试过此操作。效果很好。