klaytn caver-js 설치
2020-12-10
$ mkdir klaytn-dev
$ cd klaytn-dev
https://nodejs.org/en/download/
LTS
macOS Installer
node-v14.15.1.pkg
pkg 설치 (npm is installed with Node.js) 후 확인
$ node -v
v14.15.1
$ npm -v
6.14.8
셋팅
~/klaytn-dev $ 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: (klaytn-dev)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to /Users/User/klaytn-dev/package.json:
{
"name": "klaytn-dev",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
Is this OK? (yes)
~/klaytn-dev $ npm install caver-js
~/klaytn-dev $ npm cache clean --force
npm WARN using --force I sure hope you know what you are doing.
~/klaytn-dev $ npm install caver-js@latest
npm WARN deprecated @web3-js/scrypt-shim@0.1.0: This package is deprecated, for a pure JS implementation please use scrypt-js
npm WARN deprecated request@2.87.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated ipfs-api@26.1.2: ipfs-api has been renamed to ipfs-http-client, please update your package.json to get the latest version.
npm WARN deprecated promisify-es6@1.0.3: Unmaintained
npm WARN deprecated peer-info@0.14.1: No longer supported for js-libp2p0.28.0 or later
npm WARN deprecated multicodec@0.5.7: stable api reached
npm WARN deprecated libp2p-crypto-secp256k1@0.2.3: Included in libp2p-crypto, use it instead. https://github.com/libp2p/js-libp2p-crypto
npm WARN deprecated libp2p-crypto-secp256k1@0.3.1: Included in libp2p-crypto, use it instead. https://github.com/libp2p/js-libp2p-crypto
npm WARN deprecated har-validator@5.0.3: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN klaytn-dev@1.0.0 No description
npm WARN klaytn-dev@1.0.0 No repository field.
+ caver-js@1.5.5
updated 1 package and audited 697 packages in 21.444s