Error HH801: Plugin #nomicfoundation/hardhat-toolbox requires the following dependencies to be installed: - blockchain

yarn hardhat
yarn run v1.22.19
$ D:\Codeing\Blockchain\hardhat\node_modules\.bin\hardhat
Error HH801: Plugin #nomicfoundation/hardhat-toolbox requires the following dependencies to be installed: #ethersproject/providers, #nomicfoundation/hardhat-network-helpers, #nomicfoundation/hardhat-chai-matchers, #nomiclabs/hardhat-ethers, #nomiclabs/hardhat-etherscan, #types/chai, #types/mocha, #typechain/ethers-v5, #typechain/hardhat, chai, ethers, hardhat-gas-reporter, solidity-coverage, ts-node, typechain, typescript.
Please run: npm install --save-dev "#ethersproject/providers#^5.4.7" "#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" "#types/chai#^4.2.0" "#types/mocha#>=9.1.0" "#typechain/ethers-v5#^10.1.0" "#typechain/hardhat#^6.1.2" "chai#^4.2.0" "ethers#^5.4.7" "hardhat-gas-reporter#^1.0.8" "solidity-coverage#^0.8.1" "ts-node#>=8.0.0" "typechain#^8.1.0" "typescript#>=4.5.0"
Hi i am facing this issues..when tring to yarn hardhat

Related

Cannot install google-api-core package in our python app (Google Cloud Platform) due to conflicting dependencies (Python 3)

When I tried to install the Google Core API package, it always gets errors for every different version of this package. The app is run in Python 3, and I got the following logs:
The user requested google-api-core==1.21.0
google-cloud-core 1.4.3 depends on google-api-core<2.0.0dev and >=1.19.0
google-api-core[grpc,grpcgcp] 1.29.0 depends on google-api-core 1.29.0
ERROR: Cannot install -r requirements.txt (line 52) and google-api-core[grpc,grpcgcp]==1.14.0 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
The command '/bin/sh -c pip3 install -r requirements.txt' returned a non-zero code: 1
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
We want to install this package on the Google Cloud Platform.
Could somebody please help me with the conflicting dependency issue?
We tried the following packages but none of them work.
#google-api-core==1.29.0
#google-api-core[grpc,grpcgcp]==1.14.0
#google-api-core==1.23.0
# google-api-core==1.19.0
# google-api-python-client==1.9.3
# google-auth==1.30.0
# google-auth-httplib2==0.0.4
# google-auth-oauthlib==0.4.1
# google-cloud==0.34.0
# google-cloud-bigquery==1.25.0
# google-cloud-bigquery-storage==2.0.1
# google-cloud-bigtable==1.2.1
# google-cloud-core #==1.4.3
# google-cloud-datastore==1.12.0
# google-cloud-language==2.0.0
# google-cloud-logging==1.15.0
# google-cloud-pubsub==2.1.0
# google-cloud-resource-manager==0.30.2
# google-cloud-scheduler==2.2.0
# google-cloud-secret-manager==2.0.0
# google-cloud-spanner==1.19.1
# google-cloud-storage==1.29.0
# google-cloud==0.34.0
# google-auth==1.22.1
#grpc-google-iam-v1==0.12.3
#grpcio==1.29.0
# google-resumable-media
All the other related packages versions are as follow, and they are working:
google-api-core==1.21.0
google-api-python-client==1.6.7
google-auth==1.30.0
google-auth-httplib2==0.0.4
google-auth-oauthlib==0.4.1
google-cloud
google-cloud-bigquery
google-cloud-bigquery-storage==2.0.1
google-cloud-bigtable==1.2.1
google-cloud-core==1.4.3
google-cloud-datastore==1.12.0
google-cloud-language==2.0.0
google-cloud-logging==1.15.0
google-cloud-pubsub==1.7.0
google-cloud-resource-manager==0.30.2
google-cloud-scheduler==2.0.0
google-cloud-secret-manager==2.0.0
google-cloud-spanner==1.19.1
google-cloud-storage==1.29.0
google-cloud-translate==3.0.1
google-cloud-videointelligence==1.16.0
google-cloud-vision==2.0.0
google-crc32c==1.0.0
google-pasta==0.2.0
googleapis-common-protos==1.52.0
Thanks for your time and support!
Write these steps in your requirements.txt file:
google-api-core==1.29.0
google-api-core[grpc,grpcgcp]==1.14.0
google-api-python-client==1.9.3
google-auth==1.30.0
google-auth-httplib2==0.0.4
google-auth-oauthlib==0.4.1
google-cloud==0.34.0
google-cloud-bigquery==1.25.0
google-cloud-bigquery-storage==2.0.1
google-cloud-bigtable==1.2.1
google-cloud-core ==1.4.3
google-cloud-datastore==1.12.0
google-cloud-language==2.0.0
google-cloud-logging==1.15.0
google-cloud-pubsub==2.1.0
google-cloud-resource-manager==0.30.2
google-cloud-scheduler==2.2.0
google-cloud-secret-manager==2.0.0
google-cloud-spanner==1.19.1
google-cloud-storage==1.29.0
google-cloud==0.34.0
grpc-google-iam-v1==0.12.3
grpcio==1.29.0
google-resumable-media
Create a virtual environment and then install the dependencies. The steps for doing this are:
python3 -m venv env
source env/bin/activate
pip list
pip install -r requirements.txt
Try using the below requirements.txt file. I have used the same, and it is working fine for me.

Fail to build the master branch of Chart.js

I did git clone Chart.js from github and then npx gulp build failed. Error message was "sourcemap is not a supported option".
I'm using node v10.16.2 and npm 6.9.0.
I did
git clone https://github.com/chartjs/Chart.js.git
cd Chart.js
npm install
npx gulp build
And I got
% npx gulp build
[11:19:05] Using gulpfile ~/tmp/chartjs-debug/Chart.js/gulpfile.js
[11:19:05] Starting 'build'...
src/index.js → dist/Chart.js...
created dist/Chart.js in 1.3s
src/index.js → dist/Chart.min.js...
`sourcemap` is not a supported option
[!] (terser plugin) Error: `sourcemap` is not a supported option
DefaultsError: `sourcemap` is not a supported option
at a.get (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/rollup-plugin-terser/node_modules/terser/dist/bundle.min.js:1:463)
at reportError (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/jest-worker/build/child.js:75:11)
at execMethod (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/jest-worker/build/child.js:93:5)
at process.on (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/jest-worker/build/child.js:40:7)
at process.emit (events.js:198:13)
at emit (internal/child_process.js:832:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
[11:19:07] 'build' errored after 2.72 s
[11:19:07] Error: 1
at formatError (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/format-error.js:21:10)
at Gulp.<anonymous> (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/log/events.js:33:15)
at Gulp.emit (events.js:203:15)
at Gulp.EventEmitter.emit (domain.js:448:20)
at Object.error (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/undertaker/lib/helpers/createExtensions.js:61:10)
at handler (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/now-and-later/lib/map.js:50:14)
at f (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/once/once.js:25:25)
at f (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/once/once.js:25:25)
at tryCatch (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/async-done/index.js:24:15)
at done (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/async-done/index.js:40:12)
at onError (/home/ubuntu/tmp/chartjs-debug/Chart.js/node_modules/async-done/index.js:51:5)
at process._tickCallback (internal/process/next_tick.js:68:7)
%
Any idea? Thanks!

Ember serve doesn't work (Error: Couldn't find preset "es2015")

I am building a web app using Ember. I created the project with ember new test-app and have made no changes to the generated files. When I run ember serve, I immediately receive the following error:
The Broccoli Plugin: [BroccoliMergeTrees: Addon#compileAddon(ember-welcome-page) ] failed with:
Error: Couldn't find preset "es2015" relative to directory "/Users/jacob"
at /Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map ()
at OptionManager.resolvePresets (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/Users/jacob/Desktop/test-app/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at Promise (/Users/jacob/Desktop/test-app/node_modules/broccoli-babel-transpiler/lib/parallel-api.js:102:26)
The broccoli plugin was instantiated at:
at BroccoliMergeTrees.Plugin (/Users/jacob/Desktop/test-app/node_modules/broccoli-plugin/index.js:7:31)
at new BroccoliMergeTrees (/Users/jacob/Desktop/test-app/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:16:10)
at Function.BroccoliMergeTrees [as _upstreamMergeTrees] (/Users/jacob/Desktop/test-app/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:10:53)
at mergeTrees (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/broccoli/merge-trees.js:85:33)
at Class.compileAddon (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/models/addon.js:1092:12)
at Class.treeForAddon (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/models/addon.js:746:26)
at Class.treeForAddon (/Users/jacob/Desktop/test-app/node_modules/ember-welcome-page/index.js:27:41)
at Class.superWrapper [as treeForAddon] (/Users/jacob/Desktop/test-app/node_modules/core-object/lib/assign-properties.js:34:20)
at Class._treeFor (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/models/addon.js:557:33)
at Class.treeFor (/Users/jacob/Desktop/test-app/node_modules/ember-cli/lib/models/addon.js:517:21)
I referred to this question for help, but I still received the same error after trying the solution.
I am running ember-cli v2.16.2 and node v8.9.0 on macOS High Sierra. In my node installation, the only three global modules I have installed are bower, broccoli-cli, and ember-cli.
Please do clean reinstall of ember-cli package.
npm uninstall -g ember-cli
npm cache clean --force
npm install -g ember-cli
Then run your ember new command once again and test it.

Cannot find module 'enquire.js' from 'slider.js'

I am using Antd with React, Jest and Enzyme. While testing simple shallow rendering I am getting error
"Cannot find module 'enquire.js' from 'slider.js'"
at Resolver.resolveModule (node_modules\jest-resolve\build\index.js:151:17
at Object. (node_modules\react-slick\lib\slider.js:37:38)
at Object. (node_modules\react-slick\lib\index.js:3:18)index file, test file and Error
I just want to copy the solution for this which where given here: https://github.com/ant-design/ant-design/issues/6317
For npm: rm -rf node_modules && npm install
For yarn: yarn upgrade
I found a very short way of above, just try this :
npm i enquire-js#0.1.0
0.1.0 depend on version come out

Cannot start brunch server

I first start a new project
brunch new https://github.com/wordofchristian/brunch-with-hampsters
I then try to start a watch and server
$brunch w -s
I get this error
node_modules/emblem-brunch/lib/index.js:27
this.window.run(fs.readFileSync(paths.jquery, 'utf8'));
TypeError: Object object has no method 'run'
at EmblemCompiler.module.exports.EmblemCompiler.setup (node_modules/emblem-brunch/lib/index.js:27:21)
at new EmblemCompiler (node_modules/emblem-brunch/lib/index.js:43:14)
I have no idea how to fix this error?
I figured it out with my senior programmer.
It turns out I didn't have build-essential package install on my ubuntu. It was looking for g++ command.
Likewise when I do a npm install, it needs sudo. After the g++ fix and the sudo npm install, I was able to launch
brunch w -s