migration scripts not working, manually remove port
sudo rm -rf /opt/local \
> /Applications/DarwinPorts \
> /Applications/MacPorts \
> /Library/LaunchDaemons/org.macports.* \
> /Library/Receipts/DarwinPorts*.pkg \
> /Library/Receipts/MacPorts*.pkg \
> /Library/StartupItems/DarwinPortsStartup \
> /Library/Tcl/darwinports1.0 \
> /Library/Tcl/macports1.0 \
> ~/.macports
reinstal homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
for install
npm install -g ethereum-console
ethconsole
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ethereum-console/node_modules/scrypt/build'
gyp ERR! System Darwin 17.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/ethereum-console/node_modules/scrypt
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@6.0.3 install 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/jing/.npm/_logs/2018-08-15T04_11_21_497Z-debug.log
sudo npm install -g ethereum-console --unsafe-perm=true --allow-root
got:
except ImportError as e:
^
SyntaxError: invalid syntax
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/ethereum-console/node_modules/scrypt
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
cd '' && '/usr/bin/pythonw' '<your script here>' && echo Exit status: $? && exit 1
force linked to python3.7
brew link --overwrite python
python3 failed
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/usr/local/bin/python" is v3.7.0, which is not supported by gyp.
brew install python2 && cp /usr/local/bin/python2 /usr/local/bin/python
and use the other terminal, it will work
brew install python2 && cp /usr/local/bin/python2 /usr/local/bin/python
sudo npm install -g ethereum-console --unsafe-perm=true --allow-root
then finished
ethconsole
ETHEREUM CONSOLE
Connecting to node at /Users/jing/Library/Ethereum/geth.ipc
ERROR
Error: CONNECTION ERROR: Couldn't connect to node on IPC.
Exit due to error.
brew tap ethereum/ethereum
brew install cpp-ethereum
brew linkapps cpp-ethereum
No comments:
Post a Comment