Getting an error while running truffle init command - macos

I've installed truffle successfully but when I run truffle init I always get the following error:
Downloading...
Error: read ETIMEDOUT
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
Node, npm and system version:
node -v
v10.10.0
npm -v
6.4.1
truffle version
Truffle v4.1.14 (core: 4.1.14)
Solidity v0.4.24 (solc-js)
ProductName: Mac OS X
ProductVersion: 10.13.6
Any ideas how to resolve this issue?

So the solution I came up is to downgrade node to v8.12.0 and it works.

Related

cypress upgrade 9.0 to 10.3 , missing executable cypress.exe

I upgraded from Cypress 9.0 to 10.3.0 with Corporate Proxy . PS C:\CypressUpgrade10> node -v v12.14.1 PS C:\CypressUpgrade10> npm -v 6.13.4
PS C:\CypressUpgrade10>
I download (from nexus) & installation seems to be success
npx cypress -v Cypress binary version: 10.3.0 Electron version: 18.3.0 Bundled Node version: 16.13.2
But npx cypress verify or cypress run /open gives error as below & there is no Cypress.exe on Local
No version of Cypress is installed in: C:\Users\AppData\Local\Cypress\Cache\10.3.0\Cypress
Please reinstall Cypress by running: cypress install
Cypress executable not found at: C:\Users\AppData\Local\Cypress\Cache\10.3.0\Cypress\Cypress.exe
Platform: win32-x64 (10.0.19042) Cypress Version: 10.3.0
Missing any dependency or compatibility issue ?
Thanks
Run the command npx cypress install. This should fix your issue.
It works after updating Binary version to 0 & installing by npm install cypress#10.3.0

install packages on MacOS m1 Monterey

I have a problem with installation packages on my macOS Monterey machine with m1 chip. My project has been created using Vue2/NuxtJS. And when I try to install packages with command sudo npm i - I get errors:
Please help, what I'm doing wrong?
I ran into same issue. In my case, I had to downgrade npm version.

Installing docpad#6.63 error: No compatible version found: taskgroup#'~3.3.7n'

I'm trying to install docpad and following the guide on: http://docpad.org/docs/install
When I issue the command:
npm install -g docpad#6.63
I get the following npm error:
npm ERR! Error: No compatible version found: taskgroup#'~3.3.7n'
npm ERR! Valid install targets:
npm ERR! ["2.0.0","3.0.0","3.1.0","3.1.1","3.1.2","3.2.0","3.2.2","3.2.3","3.2.4","3.3.0","3.3.1","3.3.2","3.3.3","3.3.4","3.3.5","3.3.6","3.3.7","3.3.8"]
My node version: v0.10.15
My npm version: 1.2.18
I'm running Kubuntu 13.10 with all updates.
I checked if there is an issue reported for this on github, there isn't. Should I report this as an issue or am I doing something wrong?
Same problem here (Kubuntu 13.10).
I sugggest to go back to a previous version of docpad for the moment. On Ubunto/Debian there is another pitfall: some node modules depend on the nodejs executable to be available under node, so you need the additional package nodejs-legacy.
This worked for me:
sudo apt-get install nodejs-legacy
npm install docpad#6.55.6
Bug on DocPad's behalf, that n shouldn't have been there. Now fixed in v6.63.5. Thanks for the report!

OSX Mountain Lion Cloud 9 install instructions

How can I install cloud9 locally on osx mountain lion?
following the instructions at https://github.com/ajaxorg/cloud9/ did not work.
You should check your nodejs version node --version. Use a version lower than 0.8.x
If you are already using 0.10.x and don't intend to go backwards, then you should try nvm:
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
open a new terminal window (or do a shell logout + login)
nvm install 0.8
nvm use 0.8
Then follow cloud9 instructions
git clone https://github.com/ajaxorg/cloud9.git
cd cloud9
npm install
If this doesn't work try updating npm by executing npm update -g
NOTE: if you get EACCES errors then you should probably try sudo npm update -g
Ok, finally figured it out:
Using
node --version = v0.10.5
npm --version = 1.2.18
npm install cloud9
edit node_modules/cloud9/bin/cloud9.js
goto line 42
where: require("cloud9").main(options);
change to: require("../server/cloud9").main(options);
./node_modules/cloud9/bin/cloud9.sh
Haven't found any errors yet, but only just started using it.

Can't build Node.js on Ubuntu 10.04

When I try to build Node.js on my Ubuntu 10.04 server it fails with the following error:
/etc/node/deps/v8/src/hydrogen.cc: In member function 'v8::internal::HInstruction* v8::internal::HGraphBuilder::BuildBinaryOperation(v8::internal::BinaryOperation*, v8::internal::HValue*, v8::internal::HValue*)':
/etc/node/deps/v8/src/hydrogen.cc:4912: internal compiler error: Segmentation fault
When building I ran the following commands:
git clone --depth 1 git://github.com/joyent/node.git
cd node
mkdir ~/local
./configure --prefix=$HOME/local/node
make
I also tried to compile it without setting --prefix and it worked. It didn't work to install it, though. Got this error when running make install:
Unable to install the file 'deps/uv/c-ares/ares_build.h' (not found in dir:///etc/node)
I have tried this with 0.4.8 and 0.4.0 but I get a segmentation fault on both of them.
Here is some more information:
OS: Ubuntu 10.04
Arch: x64
Node versions: 0.4.8 or 0.4.0
GCC version: 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
Any ideas?
I've just tried install node.js myself. The problem is that by default the branch points at master which is unstable. Before installing it call
$ git checkout origin/v0.4
$ ./configure
$ make
$ make install
Of course you also want to install npm after node because everyone loves it
$ curl http://npmjs.org/install.sh | sh

Resources