Created
February 22, 2023 01:40
-
-
Save gwmccubbin/7153afc0311cbf46f0f1ae65ca0ef5cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ code mkdir my_test_project | |
➜ code cd my_test_project | |
➜ my_test_project npm init | |
This utility will walk you through creating a package.json file. | |
It only covers the most common items, and tries to guess sensible defaults. | |
See npm help init for definitive documentation on these fields | |
and exactly what they do. | |
Use npm install <pkg> afterwards to install a package and | |
save it as a dependency in the package.json file. | |
Press ^C at any time to quit. | |
package name: (my_test_project) | |
version: (1.0.0) | |
description: | |
entry point: (index.js) | |
test command: | |
git repository: | |
keywords: | |
author: | |
license: (ISC) | |
About to write to /Users/gregory/code/my_test_project/package.json: | |
{ | |
"name": "my_test_project", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC" | |
} | |
Is this OK? (yes) \ | |
Aborted. | |
➜ my_test_project npm install --save hardhat | |
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it! | |
classic-level@1.2.0 install /Users/gregory/code/node_modules/classic-level | |
node-gyp-build | |
secp256k1@4.0.3 install /Users/gregory/code/node_modules/secp256k1 | |
node-gyp-build || exit 0 | |
keccak@3.0.3 install /Users/gregory/code/node_modules/keccak | |
node-gyp-build || exit 0 | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-linux-x64-musl@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-linux-x64-musl): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-linux-x64-musl@0.1.0: wanted {"os":"linux","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-win32-arm64-msvc@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-win32-arm64-msvc): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-win32-arm64-msvc@0.1.0: wanted {"os":"win32","arch":"arm64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-linux-x64-gnu@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-linux-x64-gnu): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-linux-x64-gnu@0.1.0: wanted {"os":"linux","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-linux-arm64-gnu@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-linux-arm64-gnu): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-linux-arm64-gnu@0.1.0: wanted {"os":"linux","arch":"arm64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-freebsd-x64@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-freebsd-x64): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-freebsd-x64@0.1.0: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-linux-arm64-musl@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-linux-arm64-musl): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-linux-arm64-musl@0.1.0: wanted {"os":"linux","arch":"arm64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-win32-x64-msvc@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-win32-x64-msvc): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-win32-x64-msvc@0.1.0: wanted {"os":"win32","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-darwin-arm64@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-darwin-arm64): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-darwin-arm64@0.1.0: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-win32-ia32-msvc@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-win32-ia32-msvc): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-win32-ia32-msvc@0.1.0: wanted {"os":"win32","arch":"ia32"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN solidity_intensive@1.0.0 No description | |
npm WARN solidity_intensive@1.0.0 No repository field. | |
+ hardhat@2.12.7 | |
added 301 packages from 290 contributors and audited 310 packages in 27.366s | |
61 packages are looking for funding | |
run npm fund for details | |
found 0 vulnerabilities | |
➜ my_test_project npx hardhat init | |
888 888 888 888 888 | |
888 888 888 888 888 | |
888 888 888 888 888 | |
8888888888 8888b. 888d888 .d88888 88888b. 8888b. 888888 | |
888 888 "88b 888P" d88" 888 888 "88b "88b 888 | |
888 888 .d888888 888 888 888 888 888 .d888888 888 | |
888 888 888 888 888 Y88b 888 888 888 888 888 Y88b. | |
888 888 "Y888888 888 "Y88888 888 888 "Y888888 "Y888 | |
:construction_worker: Welcome to Hardhat v2.12.7 👷 | |
✔ What do you want to do? · Create a JavaScript project | |
✔ Hardhat project root: · /Users/gregory/code/my_test_project | |
✔ Do you want to add a .gitignore? (Y/n) · y | |
✔ Do you want to install this sample project's dependencies with npm (hardhat @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers @nomicfoundation/hardhat-chai-matchers @nomiclabs/hardhat-ethers @nomiclabs/hardhat-etherscan chai ethers hardhat-gas-reporter solidity-coverage @typechain/hardhat typechain @typechain/ethers-v5 @ethersproject/abi @ethersproject/providers)? (Y/n) · y | |
npm install --save-dev hardhat@^2.11.1 @nomicfoundation/hardhat-toolbox@^2.0.0 @nomicfoundation/hardhat-network-helpers@^1.0.0 @nomicfoundation/hardhat-chai-matchers@^1.0.0 @nomiclabs/hardhat-ethers@^2.0.0 @nomiclabs/hardhat-etherscan@^3.0.0 chai@^4.2.0 ethers@^5.4.7 hardhat-gas-reporter@^1.0.8 solidity-coverage@^0.8.0 @typechain/hardhat@^6.1.2 typechain@^8.1.0 @typechain/ethers-v5@^10.1.0 @ethersproject/abi@^5.4.7 @ethersproject/providers@^5.4.7 | |
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 | |
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 | |
npm WARN deprecated uuid@2.0.1: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. | |
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) | |
npm WARN deprecated fsevents@2.1.3: "Please update to latest v2.3 or v2.2" | |
npm WARN deprecated har-validator@5.1.5: this library is no longer supported | |
classic-level@1.2.0 install /Users/gregory/code/my_test_project/node_modules/classic-level | |
node-gyp-build | |
secp256k1@4.0.3 install /Users/gregory/code/my_test_project/node_modules/secp256k1 | |
node-gyp-build || exit 0 | |
keccak@3.0.3 install /Users/gregory/code/my_test_project/node_modules/keccak | |
node-gyp-build || exit 0 | |
npm notice created a lockfile as package-lock.json. You should commit this file. | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-linux-arm64-musl@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-linux-arm64-musl): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-linux-arm64-musl@0.1.0: wanted {"os":"linux","arch":"arm64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-win32-arm64-msvc@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-win32-arm64-msvc): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-win32-arm64-msvc@0.1.0: wanted {"os":"win32","arch":"arm64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-win32-x64-msvc@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-win32-x64-msvc): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-win32-x64-msvc@0.1.0: wanted {"os":"win32","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-darwin-arm64@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-darwin-arm64): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-darwin-arm64@0.1.0: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-win32-ia32-msvc@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-win32-ia32-msvc): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-win32-ia32-msvc@0.1.0: wanted {"os":"win32","arch":"ia32"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-linux-arm64-gnu@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-linux-arm64-gnu): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-linux-arm64-gnu@0.1.0: wanted {"os":"linux","arch":"arm64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-linux-x64-gnu@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-linux-x64-gnu): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-linux-x64-gnu@0.1.0: wanted {"os":"linux","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-linux-x64-musl@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-linux-x64-musl): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-linux-x64-musl@0.1.0: wanted {"os":"linux","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @nomicfoundation/solidity-analyzer-freebsd-x64@0.1.0 (node_modules/@nomicfoundation/solidity-analyzer/node_modules/@nomicfoundation/solidity-analyzer-freebsd-x64): | |
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @nomicfoundation/solidity-analyzer-freebsd-x64@0.1.0: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"darwin","arch":"x64"}) | |
npm WARN typechain@8.1.1 requires a peer of typescript@>=4.3.0 but none is installed. You must install peer dependencies yourself. | |
npm WARN @nomicfoundation/hardhat-toolbox@2.0.1 requires a peer of @types/mocha@>=9.1.0 but none is installed. You must install peer dependencies yourself. | |
npm WARN @nomicfoundation/hardhat-toolbox@2.0.1 requires a peer of ts-node@>=8.0.0 but none is installed. You must install peer dependencies yourself. | |
npm WARN @nomicfoundation/hardhat-toolbox@2.0.1 requires a peer of typescript@>=4.5.0 but none is installed. You must install peer dependencies yourself. | |
npm WARN @typechain/ethers-v5@10.2.0 requires a peer of typescript@>=4.3.0 but none is installed. You must install peer dependencies yourself. | |
npm WARN ws@7.4.6 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself. | |
npm WARN ws@7.4.6 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself. | |
npm WARN ts-essentials@7.0.3 requires a peer of typescript@>=3.7.0 but none is installed. You must install peer dependencies yourself. | |
npm WARN @morgan-stanley/ts-mocking-bird@0.6.4 requires a peer of typescript@>=4.2 but none is installed. You must install peer dependencies yourself. | |
npm WARN hardhat-project@ No repository field. | |
npm WARN hardhat-project@ No license field. | |
+ hardhat@2.12.7 | |
+ hardhat-gas-reporter@1.0.9 | |
+ ethers@5.7.2 | |
+ chai@4.3.7 | |
+ solidity-coverage@0.8.2 | |
+ @ethersproject/abi@5.7.0 | |
+ typechain@8.1.1 | |
+ @nomicfoundation/hardhat-toolbox@2.0.1 | |
+ @typechain/hardhat@6.1.5 | |
+ @nomicfoundation/hardhat-network-helpers@1.0.8 | |
+ @nomiclabs/hardhat-etherscan@3.1.6 | |
+ @nomicfoundation/hardhat-chai-matchers@1.0.6 | |
+ @typechain/ethers-v5@10.2.0 | |
+ @nomiclabs/hardhat-ethers@2.2.2 | |
+ @ethersproject/providers@5.7.2 | |
added 684 packages from 582 contributors and audited 695 packages in 32.364s | |
121 packages are looking for funding | |
run npm fund for details | |
found 6 vulnerabilities (4 high, 2 critical) | |
run npm audit fix to fix them, or npm audit for details | |
:sparkles: Project created :sparkles: | |
See the README.md file for some example tasks you can run | |
Give Hardhat a star on Github if you're enjoying it! :revolving_hearts::sparkles: | |
https://github.com/NomicFoundation/hardhat | |
➜ my_test_project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment