embarklabs/embark

Multiple errors installing and running on Mac

bishopZ opened this issue · 3 comments

Bug Report

Summary

Difficulty with installing, errors when running.

Current behavior

When attempting npm -g install embark using Node v10.16.0 I get errors.

Keccak bindings compilation fail. Pure JS implementation will be used.

> keccak@1.4.0 install /Users/bzareh/.nvm/versions/node/v10.16.0/lib/node_modules/embark/node_modules/ethereumjs-vm/node_modules/keccak
> npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used."


> keccak@1.4.0 rebuild /Users/bzareh/.nvm/versions/node/v10.16.0/lib/node_modules/embark/node_modules/ethereumjs-vm/node_modules/keccak
> node-gyp rebuild

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/bzareh/.nvm/versions/node/v10.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 20.5.0
gyp ERR! command "/Users/bzareh/.nvm/versions/node/v10.16.0/bin/node" "/Users/bzareh/.nvm/versions/node/v10.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/bzareh/.nvm/versions/node/v10.16.0/lib/node_modules/embark/node_modules/ethereumjs-vm/node_modules/keccak
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! keccak@1.4.0 rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the keccak@1.4.0 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

When I use Node v14.17.0 the install works. But when I run embark --version I get warnings.

(node:71304) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:71304) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:71304) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
6.0.0

embark demo creates the demo folder and files, but also has warnings.

(node:72363) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:72363) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:72363) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
Initializing Embark template...
Installing packages...
Could not install dependencies. Try running `npm install` inside the project directory.
Init complete

App ready at embark_demo
-------------------
Next steps:
-> cd embark_demo
-> embark run
For more info go to http://framework.embarklabs.io

Then I move into the embark_demo folder and run npm i and get errors.

npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /Users/bzareh/git/embark2/embark_demo/node_modules/sha3
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@14.17.0 | darwin | x64
npm ERR! gyp info spawn /usr/bin/python2
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/bzareh/git/embark2/embark_demo/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/bzareh/git/embark2/embark_demo/node_modules/sha3/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/bzareh/git/embark2/embark_demo/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/bzareh/.node-gyp/14.17.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/bzareh/.node-gyp/14.17.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/bzareh/git/embark2/embark_demo/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/bzareh/.node-gyp/14.17.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/bzareh/git/embark2/embark_demo/node_modules/sha3',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
npm ERR! 
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
npm ERR! 
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
npm ERR! 
npm ERR! gyp: No Xcode or CLT version detected!
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/Users/bzareh/git/embark2/embark_demo/node_modules/node-gyp/lib/configure.js:345:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:376:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Darwin 20.5.0
npm ERR! gyp ERR! command "/Users/bzareh/.nvm/versions/node/v14.17.0/bin/node" "/Users/bzareh/git/embark2/embark_demo/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/bzareh/git/embark2/embark_demo/node_modules/sha3
npm ERR! gyp ERR! node -v v14.17.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok

If I try to run embark run I get a complaint that dependencies aren't installed.

code EPKGCHK
embark ERR! package bootstrap: not installed!
embark ERR! package classnames: not installed!
embark ERR! package embark: not installed!
embark ERR! package embark-basic-pipeline: not installed!
embark ERR! package embark-geth: not installed!
embark ERR! package embark-graph: not installed!
embark ERR! package embark-ipfs: not installed!
embark ERR! package embark-parity: not installed!
embark ERR! package embark-profiler: not installed!
embark ERR! package embark-swarm: not installed!
embark ERR! package embark-whisper-geth: not installed!
embark ERR! package embarkjs: not installed!
embark ERR! package embarkjs-ens: not installed!
embark ERR! package embarkjs-ipfs: not installed!
embark ERR! package embarkjs-swarm: not installed!
embark ERR! package embarkjs-web3: not installed!
embark ERR! package embarkjs-whisper: not installed!
embark ERR! package jquery: not installed!
embark ERR! package popper.js: not installed!
embark ERR! package react: not installed!
embark ERR! package react-dom: not installed!
embark ERR! package reactstrap: not installed!
embark ERR! package Invoke npm install to install missing packages

How to reproduce

  1. Install Geth
  2. Install IPFS
  3. Change to Node v14.17.0
  4. npm -g i embark
  5. embark --version
  6. embark demo
  7. cd embark_demo
  8. npm i
  9. embark run

Expected behavior

I expect to see Cockpit.

$ embark run --nodashboard --logfile log.txt --loglevel trace

 embark run --nodashboard --logfile log.txt --loglevel trace
embark ERR! file /Users/bzareh/git/embark2/embark_demo/package.json
embark ERR! code EPKGCHK
embark ERR! package bootstrap: not installed!
embark ERR! package classnames: not installed!
embark ERR! package embark: not installed!
embark ERR! package embark-basic-pipeline: not installed!
embark ERR! package embark-geth: not installed!
embark ERR! package embark-graph: not installed!
embark ERR! package embark-ipfs: not installed!
embark ERR! package embark-parity: not installed!
embark ERR! package embark-profiler: not installed!
embark ERR! package embark-swarm: not installed!
embark ERR! package embark-whisper-geth: not installed!
embark ERR! package embarkjs: not installed!
embark ERR! package embarkjs-ens: not installed!
embark ERR! package embarkjs-ipfs: not installed!
embark ERR! package embarkjs-swarm: not installed!
embark ERR! package embarkjs-web3: not installed!
embark ERR! package embarkjs-whisper: not installed!
embark ERR! package jquery: not installed!
embark ERR! package popper.js: not installed!
embark ERR! package react: not installed!
embark ERR! package react-dom: not installed!
embark ERR! package reactstrap: not installed!
embark ERR! package Invoke npm install to install missing packages

Please provide additional information about your system

OS:
MacOS Big Sur, v11.4
Intel processor

Embark Version:
6.0.0

Node Version:
v14.17.0

NPM Version:
7.14.0

Sometimes issues are related to Embark's installation. Can you provide information on how Embark was installed?

see above, first time install

I tried starting over with Node v16.1.0 and got the same errors.

This case seems an easy one:
No Xcode or CLT version detected!

Much worse, that it requires Python 2, that I don't have (and don't want)
Ubuntu 20.04 - no Python 2
Big Sur 11.5.x - there's Python 2 somewhere, npm i fails with make: -DNODE_GYP_MODULE_NAME=sha3 and No such file/dir

Looks like, the main contributors went to https://github.com/status-im

embark --version
(node:62035) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:62035) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:62035) Warning: Accessing non-existent property 'which' of module exports inside circular dependency

Same issue here, fresh install on an intel mac. I don't see any xcode issue in mine. I am getting this error in node16 btw