trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.32k forks source link

unable to install Truffle Webpack #459

Closed FugueWeb closed 7 years ago

FugueWeb commented 7 years ago

Issue

Not sure how actively Truffle Webpack starter is being maintained, but as it is referenced in the Truffle docs (and there is no issues tab available in the truffle-init-webpack repo) I thought I would post this here. I'm unable to successfully install or truffle compile the Webpack version of Truffle.

Steps to Reproduce

truffle init webpack

Actual Results

Downloading project... Installing dependencies... Error: Command failed: npm install babel-cli@^6.22.2 babel-core@^6.22.1 babel-eslint@^6.1.2 babel-loader@^6.2.10 babel-plugin-transform-runtime@^6.22.0 babel-preset-env@^1.1.8 babel-preset-es2015@^6.22.0 babel-register@^6.22.0 copy-webpack-plugin@^4.0.1 css-loader@^0.26.1 eslint@^3.14.0 eslint-config-standard@^6.0.0 eslint-plugin-babel@^4.0.0 eslint-plugin-mocha@^4.8.0 eslint-plugin-promise@^3.0.0 eslint-plugin-standard@^2.0.0 html-webpack-plugin@^2.28.0 json-loader@^0.5.4 style-loader@^0.13.1 truffle-contract@^1.1.6 web3@^0.18.2 webpack@^2.2.1 webpack-dev-server@^2.3.0

Note, installing Babel globally is specifically not encouraged in the Babel docs.

There also seems to no longer be a git file/repo for bignumber.js. I get this bignumber error also when trying to install truffle-default-builder.

npm ERR! git fetch -a origin (https://github.com/debris/bignumber.js.git) remote: Repository not found. npm ERR! git fetch -a origin (https://github.com/debris/bignumber.js.git) fatal: repository 'https://github.com/debris/bignumber.js.git/' not found

Environment

Truffle 3.2.8 Darwin 16.6.0 node v6.11.0 npm v3.10.10

FugueWeb commented 7 years ago

https://github.com/npm/npm/issues/17413 https://github.com/ethereum/web3.js/issues/904

The bignumber problem seems to be related to a few other issues

kahwooi commented 7 years ago

I am having the same problem. Prompted with GitHub login, and https://github.com/debris/bignumber.js cannot be found.

beaini commented 7 years ago

As a workaround, move to beta: npm install -g truffle@beta

kahwooi commented 7 years ago

@beaini yes, I am using truffle@beta

tsouza commented 7 years ago

I can install with npm install -g truffle@beta but yet truffle init webpack fails with same issue

porfavorite commented 7 years ago

The same problem here. Installed truffle@beta, didn't help. testrpc doesn't install as well, but testrpc@beta worked well. How long do we need to wait for the fix?

dylanseago commented 7 years ago

I was able to get mine installed locally.

Here are the changes I made to fix all the broken dependencies, in the order they need to be applied:

I used npm link to hook up the dependency fixes locally and was able to successfully install the patched version of truffle 3.2.5 from https://github.com/trufflesuite/truffle/pull/460. But I ran into a bug in npm (https://github.com/npm/npm/issues/10343) which blocked me from fully testing the fix.

tcoulter commented 7 years ago

Closing as duplicate. Using trufflesuite/truffle#485 to track. Thanks!