Solvedweb3.js Unable to install web3 1.0.0-beta.11 or web3 1.0.0-beta.12

Hi

I'm using node 8.2.1 and npm 5.3.0 on OSX.

I'm not able to install web3 1.0 even after a clean cache.

Did I missed something?

$ npm install -g web3

> web3@1.0.0-beta.12 postinstall /Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3
> lerna bootstrap

lerna info version 2.0.0
lerna info Bootstrapping 19 packages
lerna info lifecycle preinstall
lerna info Installing external dependencies
lerna ERR! execute Error: Command failed: npm install
lerna ERR! execute npm ERR! Can't install /Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/packages/web3-utils: Missing package name
lerna ERR! execute 
lerna ERR! execute npm ERR! A complete log of this run can be found in:
lerna ERR! execute npm ERR!     /Users/eloudsa/.npm/_logs/2017-07-26T18_28_04_858Z-debug.log
lerna ERR! execute 
lerna ERR! execute     at Promise.all.then.arr (/Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/node_modules/execa/index.js:210:11)
lerna ERR! execute     at <anonymous>
lerna ERR! execute     at process._tickCallback (internal/process/next_tick.js:188:7)
lerna ERR! execute  callback with error
lerna ERR! execute  { Error: Command failed: npm install
lerna ERR! execute npm ERR! Can't install /Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/packages/web3-utils: Missing package name
lerna ERR! execute 
lerna ERR! execute npm ERR! A complete log of this run can be found in:
lerna ERR! execute npm ERR!     /Users/eloudsa/.npm/_logs/2017-07-26T18_28_04_858Z-debug.log
lerna ERR! execute 
lerna ERR! execute     at Promise.all.then.arr (/Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/node_modules/execa/index.js:210:11)
lerna ERR! execute     at <anonymous>
lerna ERR! execute     at process._tickCallback (internal/process/next_tick.js:188:7)
lerna ERR! execute   stack: 'Error: Command failed: npm install\nnpm ERR! Can\'t install /Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/packages/web3-utils: Missing package name\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/eloudsa/.npm/_logs/2017-07-26T18_28_04_858Z-debug.log\n\n    at Promise.all.then.arr (/Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/node_modules/execa/index.js:210:11)\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:188:7)',
lerna ERR! execute   code: 1,
lerna ERR! execute   killed: false,
lerna ERR! execute   stdout: '',
lerna ERR! execute   stderr: 'npm ERR! Can\'t install /Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/packages/web3-utils: Missing package name\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/eloudsa/.npm/_logs/2017-07-26T18_28_04_858Z-debug.log\n',
lerna ERR! execute   failed: true,
lerna ERR! execute   signal: null,
lerna ERR! execute   cmd: 'npm install',
lerna ERR! execute   timedOut: false }
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
(node:75362) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: Command failed: npm install
npm ERR! Can't install /Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/packages/web3-utils: Missing package name

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/eloudsa/.npm/_logs/2017-07-26T18_28_04_858Z-debug.log

(node:75362) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:75362) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: Command failed: npm install
npm ERR! Can't install /Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/packages/web3-bzz: Missing package name

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/eloudsa/.npm/_logs/2017-07-26T18_28_04_869Z-debug.log

(node:75362) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 9): Error: Command failed: npm install
npm ERR! Can't install /Users/eloudsa/.nvm/versions/node/v8.2.1/lib/node_modules/web3/packages/web3-eth-abi: Missing package name

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/eloudsa/.npm/_logs/2017-07-26T18_28_04_969Z-debug.log

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! web3@1.0.0-beta.12 postinstall: `lerna bootstrap`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the web3@1.0.0-beta.12 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/eloudsa/.npm/_logs/2017-07-26T18_28_11_469Z-debug.log
26 Answers

✔️Accepted Answer

@1337cookie try installing v0.20.0 or downgrading node to v6:

$npm install web3@^0.20.0

or

$nvm install v6
$npm install web3

Other Answers:

U can install web3@1.0.0-beta.26 on windows machines

But before installing you have to make the windows dependencies visuall c++ tool by running,
npm install --global --production windows-build-tools

after the installation is complete

run
npm install --save web3@1.0.0-beta.26

and hurray u have your web3 with the 1.0 version.

$npm install web3@^0.20.0

This also did the job for me.

More Issues: