Error Installing Discovery CLI

I get this permissions error when installing the Discovery CLI

xxxxx@DESKTOP-49GSI99:~$ npm i -g @enigmampc/discovery-cli
npm WARN deprecated @babel/polyfill@7.4.4: :rotating_light: As of Babel 7.4.0, this
npm WARN deprecated package has been deprecated in favor of directly
npm WARN deprecated including core-js/stable (to polyfill ECMAScript
npm WARN deprecated features) and regenerator-runtime/runtime
npm WARN deprecated (needed to use transpiled generator functions):
npm WARN deprecated
npm WARN deprecated > import “core-js/stable”;
npm WARN deprecated > import “regenerator-runtime/runtime”;
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.gz@1.0.7: :warning: WARNING :warning: tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated babel-preset-es2015@6.24.1: :raised_hands: Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm WARN truffle-decoder@3.0.5 requires a peer of truffle@^5.0.14 but none is installed. You must install peer dependencies yourself.

npm ERR! path /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access ‘/usr/lib/node_modules’
npm ERR! { Error: EACCES: permission denied, access ‘/usr/lib/node_modules’
npm ERR! stack: ‘Error: EACCES: permission denied, access ‘/usr/lib/node_modules’’,
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘access’,
npm ERR! path: ‘/usr/lib/node_modules’ }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR! /home/xxxxx/.npm/_logs/2019-06-18T05_00_12_160Z-debug.log
xxxxx@DESKTOP-49GSI99:~$

I’m trying to run this in Ubuntu Linux for Windows Shell. Is there a list of pre-requisites somewhere?

Thanks,
Gavin

2 Likes

The requirements are written there : https://github.com/enigmampc/discovery-cli#requirements
I had the same error, I solved it by installing with sudo and appending --unsafe-perm to the npm command

4 Likes

I also had this error, I will see if this resolves it.

Hi @Carter-Woetzel and @Zapbbx,

The error here is because your current user doesn’t have enough permissions to install an npm package globally. Rather than reverting to using sudo which would solve the problem (but is not recommended for the security implications it has), I refer you to the following article that provides several alternatives.

In my case, I use nvm to manage my Node versions in my system, where installing a package globally encounters no problems. In the article above, the author suggests n over nvm.

2 Likes

If I run it with sudo I get:

xxxxx@DESKTOP-49GSI99:~$ sudo npm i -g @enigmampc/discovery-cli
[sudo] password for xxxxx:
npm WARN deprecated @babel/polyfill@7.4.4: :rotating_light: As of Babel 7.4.0, this
npm WARN deprecated package has been deprecated in favor of directly
npm WARN deprecated including core-js/stable (to polyfill ECMAScript
npm WARN deprecated features) and regenerator-runtime/runtime
npm WARN deprecated (needed to use transpiled generator functions):
npm WARN deprecated
npm WARN deprecated > import “core-js/stable”;
npm WARN deprecated > import “regenerator-runtime/runtime”;
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.gz@1.0.7: :warning: WARNING :warning: tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: tar - npm
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated babel-preset-es2015@6.24.1: :raised_hands: Thanks for using Babel: we recommend using babel-preset-env now: please read babel-preset-es2015 -> babel-preset-env · Babel to update!

scrypt@6.0.3 preinstall /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/scrypt
node node-scrypt-preinstall.js

Error: Error: Command failed: ./configure
./configure: line 1904: config.log: Permission denied
./configure: line 1914: config.log: Permission denied

scrypt@6.0.3 preinstall /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/scrypt
node node-scrypt-preinstall.js

Error: Error: Command failed: ./configure
./configure: line 1904: config.log: Permission denied
./configure: line 1914: config.log: Permission denied

/usr/bin/discovery → /usr/lib/node_modules/@enigmampc/discovery-cli/src/index.js

keccak@1.4.0 install /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/keccak
npm run rebuild || echo “Keccak bindings compilation fail. Pure JS implementation will be used.”

keccak@1.4.0 rebuild /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/keccak
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/keccak/build’
gyp ERR! System Linux 4.4.0-17134-Microsoft
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/keccak
gyp ERR! node -v v8.12.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.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/xxxxx/.npm/_logs/2019-06-18T15_23_33_897Z-debug.log
Keccak bindings compilation fail. Pure JS implementation will be used.

scrypt@6.0.3 install /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/scrypt
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/scrypt/build’
gyp ERR! System Linux 4.4.0-17134-Microsoft
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/scrypt
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

secp256k1@3.6.2 install /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/secp256k1
npm run rebuild || echo “Secp256k1 bindings compilation fail. Pure JS implementation will be used.”

secp256k1@3.6.2 rebuild /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/secp256k1
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/secp256k1/build’
gyp ERR! System Linux 4.4.0-17134-Microsoft
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/secp256k1
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! secp256k1@3.6.2 rebuild: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the secp256k1@3.6.2 rebuild 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! /home/xxxxx/.npm/_logs/2019-06-18T15_23_38_618Z-debug.log
Secp256k1 bindings compilation fail. Pure JS implementation will be used.

sha3@1.2.2 install /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/sha3
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/sha3/build’
gyp ERR! System Linux 4.4.0-17134-Microsoft
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /usr/lib/node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/sha3
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN truffle-decoder@3.0.5 requires a peer of truffle@^5.0.14 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@enigmampc/discovery-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: scrypt@6.0.3 (node_modules/@enigmampc/discovery-cli/node_modules/ganache-core/node_modules/scrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: scrypt@6.0.3 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sha3@1.2.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.2 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! /home/xxxxx/.npm/_logs/2019-06-18T15_25_57_197Z-debug.log
xxxxx@DESKTOP-49GSI99:~$

Well, I advised against installing it with sudo. This is a permissions error specific to how Node is installed in your system, which may work fine for any other purposes, but doesn’t work for installing global packages.

Please refer to the npm official documentation on how to resolve EACCES errors like the ones displayed above, which recommends using a Node version manager, as I suggested above.

The error you are experiencing is not specific to discovery-cli, but the way how you have Node installed in your system.

Hmmm, struggling with this… I created a brand new Windows VM in Azure. I installed Node, docker, docker-compose, Git, C++ build tools, rustc and then Python since I got a python error.

At this point, still can’t install.

Sorry for the formatting…

  C:\Users\gavin>npm install -g @enigmampc/discovery-cli
npm WARN deprecated @babel/polyfill@7.4.4: 🚨 As of Babel 7.4.0, this
npm WARN deprecated package has been deprecated in favor of directly
npm WARN deprecated including core-js/stable (to polyfill ECMAScript
npm WARN deprecated features) and regenerator-runtime/runtime
npm WARN deprecated (needed to use transpiled generator functions):
npm WARN deprecated
npm WARN deprecated   > import "core-js/stable";
npm WARN deprecated   > import "regenerator-runtime/runtime";
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.gz@1.0.7: ⚠️  WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm WARN deprecated mixin-deep@1.3.1: Critical bug fixed in v2.0.1, please upgrade to the latest version.
npm WARN deprecated set-value@2.0.0: Critical bug fixed in v3.0.1, please upgrade to the latest version.
npm WARN deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version.
scrypt@6.0.3 preinstall 

C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\scrypt

node node-scrypt-preinstall.js

scrypt@6.0.3 preinstall C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt
node node-scrypt-preinstall.js

C:\Users\gavin\AppData\Roaming\npm\discovery → C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\src\index.js

keccak@1.4.0 install C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\keccak
npm run rebuild || echo “Keccak bindings compilation fail. Pure JS implementation will be used.”

keccak@1.4.0 rebuild C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\keccak
node-gyp rebuild

C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\keccak>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python36\python.EXE -c import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack File “”, line 1
gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\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.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\gavin\AppData\Roaming\npm-cache_logs\2019-06-22T23_20_59_869Z-debug.log
“Keccak bindings compilation fail. Pure JS implementation will be used.”

scrypt@6.0.3 install C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt
node-gyp rebuild

C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python36\python.EXE -c import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack File “”, line 1
gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

secp256k1@3.6.2 install C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\secp256k1
npm run rebuild || echo “Secp256k1 bindings compilation fail. Pure JS implementation will be used.”

secp256k1@3.6.2 rebuild C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\secp256k1
node-gyp rebuild

C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\secp256k1>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python36\python.EXE -c import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack File “”, line 1
gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\secp256k1
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! secp256k1@3.6.2 rebuild: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the secp256k1@3.6.2 rebuild 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! C:\Users\gavin\AppData\Roaming\npm-cache_logs\2019-06-22T23_21_02_584Z-debug.log
“Secp256k1 bindings compilation fail. Pure JS implementation will be used.”

sha3@1.2.2 install C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\sha3
node-gyp rebuild

C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\sha3>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python36\python.EXE -c import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack File “”, line 1
gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\sha3
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN truffle-decoder@3.0.5 requires a peer of truffle@^5.0.14 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules@enigmampc\discovery-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: scrypt@6.0.3 (node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: scrypt@6.0.3 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sha3@1.2.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.2 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! C:\Users\gavin\AppData\Roaming\npm-cache_logs\2019-06-22T23_21_36_490Z-debug.log

It seems to be a python version problem. Looks like you need to use python2 instead of python3.

hmmm Python isn’t even listed in the requirements: https://github.com/enigmampc/discovery-cli#requirements
Trying that…

Installed Python 2.7…

Microsoft Windows [Version 10.0.18362.175]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\gavin>npm install -g @enigmampc/discovery-cli
npm WARN deprecated @babel/polyfill@7.4.4: :rotating_light: As of Babel 7.4.0, this
npm WARN deprecated package has been deprecated in favor of directly
npm WARN deprecated including core-js/stable (to polyfill ECMAScript
npm WARN deprecated features) and regenerator-runtime/runtime
npm WARN deprecated (needed to use transpiled generator functions):
npm WARN deprecated
npm WARN deprecated > import “core-js/stable”;
npm WARN deprecated > import “regenerator-runtime/runtime”;
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.gz@1.0.7: :warning: WARNING :warning: tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: tar - npm
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated babel-preset-es2015@6.24.1: :raised_hands: Thanks for using Babel: we recommend using babel-preset-env now: please read babel-preset-es2015 -> babel-preset-env · Babel to update!
npm WARN deprecated mixin-deep@1.3.1: Critical bug fixed in v2.0.1, please upgrade to the latest version.
npm WARN deprecated set-value@2.0.0: Critical bug fixed in v3.0.1, please upgrade to the latest version.
npm WARN deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version.

scrypt@6.0.3 preinstall C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\scrypt
node node-scrypt-preinstall.js

scrypt@6.0.3 preinstall C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt
node node-scrypt-preinstall.js

C:\Users\gavin\AppData\Roaming\npm\discovery → C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\src\index.js

keccak@1.4.0 install C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\keccak
npm run rebuild || echo “Keccak bindings compilation fail. Pure JS implementation will be used.”

keccak@1.4.0 rebuild C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\keccak
node-gyp rebuild

C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\keccak>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
gyp ERR! stack at onErrorNT (internal/child_process.js:415:16)
gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:63:19)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\keccak
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in node-gyp.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/nodejs/node-gyp/issues
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! keccak@1.4.0 rebuild: node-gyp rebuild
npm ERR! Exit status 7
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.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\gavin\AppData\Roaming\npm-cache_logs\2019-06-23T20_46_24_992Z-debug.log
“Keccak bindings compilation fail. Pure JS implementation will be used.”

scrypt@6.0.3 install C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt
node-gyp rebuild

C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
Warning: Missing input files:
C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt\build..\scrypt\win\include\config.h
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
gyp ERR! stack at onErrorNT (internal/child_process.js:415:16)
gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:63:19)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in node-gyp.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/nodejs/node-gyp/issues

secp256k1@3.6.2 install C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\secp256k1
npm run rebuild || echo “Secp256k1 bindings compilation fail. Pure JS implementation will be used.”

secp256k1@3.6.2 rebuild C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\secp256k1
node-gyp rebuild

C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\secp256k1>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
gyp ERR! stack at onErrorNT (internal/child_process.js:415:16)
gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:63:19)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\secp256k1
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in node-gyp.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/nodejs/node-gyp/issues
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! secp256k1@3.6.2 rebuild: node-gyp rebuild
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the secp256k1@3.6.2 rebuild 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! C:\Users\gavin\AppData\Roaming\npm-cache_logs\2019-06-23T20_46_29_975Z-debug.log
“Secp256k1 bindings compilation fail. Pure JS implementation will be used.”

sha3@1.2.2 install C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\sha3
node-gyp rebuild

C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\sha3>if not defined npm_config_node_gyp (node “C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…..\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
gyp ERR! stack at onErrorNT (internal/child_process.js:415:16)
gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:63:19)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\gavin\AppData\Roaming\npm\node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\sha3
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in node-gyp.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/nodejs/node-gyp/issues
npm WARN truffle-decoder@3.0.5 requires a peer of truffle@^5.0.14 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules@enigmampc\discovery-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: scrypt@6.0.3 (node_modules@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: scrypt@6.0.3 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 7

npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! sha3@1.2.2 install: node-gyp rebuild
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the sha3@1.2.2 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! C:\Users\gavin\AppData\Roaming\npm-cache_logs\2019-06-23T20_47_04_735Z-debug.log

Hi @Zapbbx,

Sorry that you are experiencing these troubles to install discovery-cli. This seems to be not an issue with discovery-cli itself, but one of its dependencies that fails to build in your particular setup (the precompiled version of that dependency is not compatible with your system, so Node tries to natively compile it in your system). The relevant line from the error that you posted above is this one:

gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT

which means that your system is looking for MSBuild.exe, but is nowhere to be found in your PATH. As you can see this is an error specific to your Windows environment. Searching online for this error, came across this similar issue. Does this help?

Let me check that. I stared with a completely fresh VM. Installed the dependencies, part of which was C++ Build Tools… I’ll check the path variables and make sure MSBuild is there…

Well, that failed due to: MSBUILD : error MSB4132: The tools version “2.0” is unrecognized. Available tools versions are “4.0”. - so I ran:

npm install --global --production windows-build-tools
then
npm config set msvs_version 2015 --global

then I ran the install again, now I get:

 keccak@1.4.0 rebuild 
C:\Users\gavin\AppData\Roaming\npm\node_modules\@enigmampc\discovery- cli\node_modules\ganache-core\node_modules\keccak
> node-gyp rebuild


C:\Users\gavin\AppData\Roaming\npm\node_modules\@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\keccak>if not defined npm_config_node_gyp (node 
"C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program 
Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Users\gavin\AppData\Roaming\npm\node_modules\@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\keccak\
build\keccak.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm
that the path in the <Import> declaration is correct, and that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program 
Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
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 Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program 
Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\gavin\AppData\Roaming\npm\node_modules\@enigmampc\discovery-cli\node_modules\ganache-core\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.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\gavin\AppData\Roaming\npm-cache\_logs\2019-06-28T16_54_53_288Z- 
debug.log
"Keccak bindings compilation fail. Pure JS implementation will be used."

> scrypt@6.0.3 install C:\Users\gavin\AppData\Roaming\npm\node_modules\@enigmampc\discovery-cli\node_modules\ganache-core\node_modules\scrypt
> node-gyp rebuild

Unfortunately, I don’t have access to a Windows machine to troubleshoot these issues, and our team does all our development in Linux and MacOs machines.

Any chance that you can spin a Linux-based VM?
We would be in a better position to assist.

FYI, if you would ever consider running Enigma production code, Windows is not supported, only Linux.

Yeah, I can spin up a Linux VM for it…

OK, I setup Ubuntu 18. Still have a ton of problems… Can we get a list of steps from a brand new machine ? Instead of links to the requirements, why not a list of steps to install them?

IE, brand new machine, give me a list of commands to run to get all dependencies and the discovery test net installed?

I’m working on a step by step, will try to finish this weekend. Started by installing in an AWS micro (knowing that it would fail) and was surprised to get to like the 7th or 8th installation package. Anyway, you’re right, a step-by-step known good build will help and will post soon for open critique.

hi guys, i also met troubles while installing Discovery CLI. Im using vagrant running ubuntu 16.04.
Error as below:

npm WARN truffle-decoder@3.0.6 requires a peer of truffle@^5.0.14 but none is installed. You must install peer dependencies yourself.
npm WARN enigma-demo@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-ansi@3.0.1 (node_modules/ganache-core/node_modules/nyc/node_modules/wrap-ansi/node_modules/strip-ansi):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/wrap-ansi/node_modules/strip-ansi/package.json.1189299802'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: string-width@1.0.2 (node_modules/ganache-core/node_modules/nyc/node_modules/wrap-ansi/node_modules/string-width):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/wrap-ansi/node_modules/string-width/package.json.2032206187'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: is-fullwidth-code-point@1.0.0 (node_modules/ganache-core/node_modules/nyc/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json.2320282090'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ansi-regex@2.1.1 (node_modules/ganache-core/node_modules/nyc/node_modules/wrap-ansi/node_modules/ansi-regex):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/wrap-ansi/node_modules/ansi-regex/package.json.1170515271'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: cross-spawn@6.0.5 (node_modules/ganache-core/node_modules/nyc/node_modules/execa/node_modules/cross-spawn):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/execa/node_modules/cross-spawn/package.json.3743992871'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: source-map@0.6.1 (node_modules/ganache-core/node_modules/nyc/node_modules/uglify-js/node_modules/source-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/uglify-js/node_modules/source-map/package.json.3821554705'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@0.0.8 (node_modules/ganache-core/node_modules/nyc/node_modules/mkdirp/node_modules/minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/mkdirp/node_modules/minimist/package.json.404173688'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: source-map@0.6.1 (node_modules/ganache-core/node_modules/nyc/node_modules/merge-source-map/node_modules/source-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/merge-source-map/node_modules/source-map/package.json.2805483013'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: source-map@0.6.1 (node_modules/ganache-core/node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/source-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/istanbul-lib-source-maps/node_modules/source-map/package.json.1045908867'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: supports-color@6.1.0 (node_modules/ganache-core/node_modules/nyc/node_modules/istanbul-lib-report/node_modules/supports-color):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/istanbul-lib-report/node_modules/supports-color/package.json.1360263759'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: source-map@0.6.1 (node_modules/ganache-core/node_modules/nyc/node_modules/handlebars/node_modules/source-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/vagrant/projects/enigma-demo/node_modules/ganache-core/node_modules/nyc/node_modules/handlebars/node_modules/source-map/package.json.4257938577'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/ganache-core/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! path ../acorn/bin/acorn
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../acorn/bin/acorn' -> '/vagrant/projects/enigma-demo/node_modules/.bin/acorn'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2019-07-09T16_45_27_936Z-debug.log

Can you please help check?

hi guys, do i have any updates? Still facing the same issue logs above even though I installed nvm as @victor’s suggestion.
My OS is ubuntu 16.04. I don’t want to install it globally, so i also removed option -g when installing Discovery CLI.
My node version is v12.6.0.
Please kindly help!

@arookie,

I have not seen the issue that you are experiencing, and I’m not very familiar with Vagrant (can’t tell if the issue is related). From an online search, I’ve come to this related issue, where they provide a possible solution, but it seems that there may be a permissions issue in your system.

@Jim and others, I can certainly provide install instructions from scratch, don’t want to duplicate efforts, but I can put one together (as you may imagine, there will be many different ways of going about this)

1 Like