Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues install and use the repo. #1

Open
zydjohnHotmail opened this issue Feb 16, 2023 · 0 comments
Open

Issues install and use the repo. #1

zydjohnHotmail opened this issue Feb 16, 2023 · 0 comments

Comments

@zydjohnHotmail
Copy link

Hello:
I found this repo, it seems to be interesting, so I want to install and take a look.
Here I found some issues:
D:\cross-bridge-main>npm -version
9.4.2

D:\cross-bridge-main>node --version
v19.5.0

D:\cross-bridge-main>npm install
npm ERR! code EJSONPARSE
npm ERR! path D:\cross-bridge-main/package.json
npm ERR! JSON.parse Expected double-quoted property name in JSON at position 193 while parsing '{
npm ERR! JSON.parse "name": "cross-chain-bridges",
npm ERR! JSON.parse "ve'
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\John\AppData\Local\npm-cache_logs\2023-02-16T19_04_04_350Z-debug-0.log

I found the wrong string in package.json. The correct package.json should look like this:

{
"name": "cross-chain-bridges",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"compile": "npx hardhat compile"
},

So I fixed this one, and try the installation again:
D:\cross-bridge-main>npm install
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: { node: '^14.0.0 || ^16.0.0 || ^18.0.0' },
npm WARN EBADENGINE current: { node: 'v19.5.0', npm: '9.4.2' }
npm WARN EBADENGINE }
npm WARN deprecated [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: 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. (debug-js/debug#797)
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: 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 [email protected]: 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 [email protected]: 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 [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: 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 [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module

added 913 packages, and audited 914 packages in 1m

129 packages are looking for funding
run npm fund for details

15 vulnerabilities (7 moderate, 5 high, 3 critical)

To address issues that do not require attention, run:
npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

D:\cross-bridge-main>
As I can see there are quite a number of packages are deprecated, is it possible to change package.json, so the installation will look much better.

For the following tests, they worked:
npm install
npx hardhat test
npx hardhat coverage

But the following tests are not working:
D:\SmartContract\cross-bridge-main>npx hardhat run scripts/deploy_gETH.ts --network goerli
You are using a version of Node.js that is not supported by Hardhat, and it may work incorrectly, or not work at all.

Please, make sure you are using a supported version of Node.js.

To learn more about which versions of Node.js are supported go to https://hardhat.org/nodejs-versions
Compiled 14 Solidity files successfully
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:399:5)
at URL.onParseError (node:internal/url:564:9)
at new URL (node:internal/url:644:5)
at new HttpProvider (D:\SmartContract\cross-bridge-main\node_modules\hardhat\src\internal\core\providers\http.ts:51:17)
at createProvider (D:\SmartContract\cross-bridge-main\node_modules\hardhat\src\internal\core\providers\construction.ts:122:23)
at D:\SmartContract\cross-bridge-main\node_modules\hardhat\src\internal\core\runtime-environment.ts:92:28
at getRealTarget (D:\SmartContract\cross-bridge-main\node_modules\hardhat\src\internal\util\lazy.ts:112:22)
at Object.get (D:\SmartContract\cross-bridge-main\node_modules\hardhat\src\internal\util\lazy.ts:185:26)
at createProviderProxy (D:\SmartContract\cross-bridge-main\node_modules@nomiclabs\hardhat-ethers\src\internal\provider-proxy.ts:25:19)
at D:\SmartContract\cross-bridge-main\node_modules@nomiclabs\hardhat-ethers\src\internal\index.ts:36:27 {
input: '',
code: 'ERR_INVALID_URL'
}

D:\SmartContract\cross-bridge-main>

I didn’t try this test yet:
npx hardhat grantRole --bridge [bridgeAddress] --token [eETH address] --network goerli

Please give me some example on how to run this test.
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant