Jump to content
FIBOS社区
Sign in to follow this  
wuweixiaoshu

按照官方文档 部署to do合约出错

Recommended Posts

运行deploy.js时出错

/home/tjx/fLbos -todomvc/scrIpts/deploy.js:22:19
Const jsCode= fs.readTextFIle( 'contracts/todo.js');
Error:[2] 没有那个文件或目录at  /home/tjx/fLbos -todomvc/scrIpts/deploy.js:22:19
 
想发图片的不知道怎么发不了。。手打了一段错误代码。。
 

Share this post


Link to post
Share on other sites
2018/10/27 PM9点10分 , wuweixiaoshu 说:

运行deploy.js时出错

/home/tjx/fLbos -todomvc/scrIpts/deploy.js:22:19
Const jsCode= fs.readTextFIle( 'contracts/todo.js');
Error:[2] 没有那个文件或目录at  /home/tjx/fLbos -todomvc/scrIpts/deploy.js:22:19
 
想发图片的不知道怎么发不了。。手打了一段错误代码。。
 

这是路径问题,错误是说找不到这个路径下的合约。

应该在 fibos-todomvc 目录下执行 fibos scripts/deploy.js 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×