# Build a Web3 App with Solidity + Ethereum Smart Contracts section01 notes **Published by:** [echocruise](https://paragraph.com/@echocruise/) **Published on:** 2021-12-01 **URL:** https://paragraph.com/@echocruise/build-a-web3-app-with-solidity-ethereum-smart-contracts-section01-notes ## Content Get your local Ethereum networking running | 部署本地 Ethereum 环境 1. 安装 node 2. 安装 nvm: nvm 安装与使用(详细步骤) — 掘金 2. Setting up the environment | Hardhat | Ethereum development environment for professionals by Nomic Labs curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.2/install.sh | bash nvm install 16 ## 需要重新打开terminal 运行 nvm use 16 nvm alias default 16 npm install npm --global # Upgrade npm to the latest version 坑 1 如果你是 mac 电脑,已经安装了 npm ,注意先卸载再安装 nvm 原因参考下述链接 想要在 Mac 电脑上面安装 nvm 来管理 npm,要保证 Mac 电脑上面没有安装 node 或者要提前卸载现有已安装的 node 版本,如果不提前清理 Mac 电脑上面的 node 版本会造成 nvm 安装失败](https://segmentfault.com/a/1190000018110318) 如果你和我一样之前已经全局安装了 node,最好先将此删除,避免以后出现不必要的冲突。 npm node 的联系与区别:nvm 和 npm 都是 node.js 应用程序开发的常用工具。 nvm 是 node.js 版本管理工具。 npm 是 JavaScript 包管理工具。 坑 2 gt push nvm 到本地出现 Git — SSL_ERROR_SYSCALL,解决方法如下 git — fatal: unable to access ‘https://github.com/xxx’: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 — Stack Overflowt — SSL_ERROR_SYSCALL 问题解决 | Hyperzsb’s Ideas](https://blog.hyperzsb.tech/git-ssl-error/) 坑 3 node 版本过高出现’ERR_OSSL_EVP_UNSUPPORTED’,解决方法如下(就是安装 node 16 就行了🥲) node.js — Node 17.0.1 causes some error — digital envelope routines::unsupported — Stack Overflow 3. 安装 hardhat mkdir my-wave-portal cd my-wave-portal npm init -y npm install --save-dev hardhat 4. Get sample project going npx hardhat ## Choose the option to create a sample project. Say yes to everything. npm install --save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethers ## Go ahead and install these other dependencies just in case it didn't do it automatically. npx hardhat accounts 5. 🌟 Run it npx hardhat compile npx hardhat test 6 delet it Go ahead and delete the file sample-test.js under test. Also, delete sample-script.js under scripts. Then, delete Greeter.sol under contracts. Don’t delete the actual folders! 7 summary 这一课是在电脑本地安装你的 ETH 编程环境,你需要安装 git,nvm,node 和 hardhat,这一课我踩了不少坑,如果你网好,没有选择错,或许你会比我顺利。对了,如果你安装 nvm 和 hardhat 中遇到了问题,或者无法卸载 node,直接删除 nvm,node 的文件夹重新安装即可。 ## Publication Information - [echocruise](https://paragraph.com/@echocruise/): Publication homepage - [All Posts](https://paragraph.com/@echocruise/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@echocruise): Subscribe to updates - [Twitter](https://twitter.com/peacerunote): Follow on Twitter