美文网首页区块链研习社区块链智能合约开发区块链大学
2019年3月18日 win10系统安装web3js的正确方法(

2019年3月18日 win10系统安装web3js的正确方法(

作者: 信渤科技区块链 | 来源:发表于2019-03-18 13:36 被阅读5次

信渤网络科技是一家基于互联网信息服务的区块链技术公司,专业提供区块链技术培训,智能合约定制开发,文字图片数据存证上链等服务,为相关企业提供区块链应用落地项目的技术方案

崇尚代码即法律,做一个智能合约开发者,重点在于合约的交易逻辑设计,交流请访问微信yyy99966

最近由于工作需要重新安装web3js,安装了几次都没有成功,仔细查了原因。

1.系统重新安装了,基本所有程序都要再来一遍。但在web3js安装时遇到了问题

经过几次偿试正确安装,现把流程说明下:

1.node.js,和npm要先安装好,具体方法此处略去简易不会出问题

2.cnpm 也要安装:命令

<pre class="prettyprint prettyprinted" style="color: rgb(0, 0, 0); font-family: "Courier New"; font-size: 12px; margin: 5px 8px; padding: 5px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">$ npm install -g cnpm --registry=https://registry.npm.taobao.org

3. 安装这个工具环境 python27命令
npm install -global --production windows-build-tools

image

</pre>

4.重要一步设置python27为系统环境变量,否则下一步安装不成功

image

5.执行 cnpm install web3 如果安装时候报出:Can’t find Python executable “python”, you can set the PYTHON env variable. 等错误。那就是缺少了3,4两步

image

6.安装完毕

相关文章

网友评论

    本文标题:2019年3月18日 win10系统安装web3js的正确方法(

    本文链接:https://www.haomeiwen.com/subject/vdpvmqtx.html