# Error Installing Discovery CLI

**URL:** <https://forum.scrt.network/t/error-installing-discovery-cli/917>\
**Category:** Secret Nodes\
**Created:** [June 18, 2019, 3:30pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917 "2019-06-18T15:30:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zapbbx](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/zapbbx/32/251_2.png) [@Zapbbx](https://forum.scrt.network/u/Zapbbx)\
**Post date:** [June 18, 2019, 3:30pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/1 "2019-06-18T15:30:21Z")

</div>

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: 🚨 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](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 [babeljs.io/env](http://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

---

<div class="post-metadata">

**Author:** ![chancla](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@chancla](https://forum.scrt.network/u/chancla)\
**Post date:** [June 18, 2019, 7:16pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/2 "2019-06-18T19:16:15Z")

</div>

The requirements are written there : [https://github.com/enigmampc/discovery-cli#requirements](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

---

<div class="post-metadata">

**Author:** ![Carter-Woetzel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/carter-woetzel/32/3575_2.png) [@Carter-Woetzel](https://forum.scrt.network/u/Carter-Woetzel)\
**Post date:** [June 19, 2019, 6:35pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/3 "2019-06-19T18:35:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![victor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/victor/32/91_2.png) [@victor](https://forum.scrt.network/u/victor)\
**Post date:** [June 20, 2019, 6:34pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/4 "2019-06-20T18:34:12Z")

</div>

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](https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-still-66e609f5f92) that provides several alternatives.

In my case, I use [nvm](https://github.com/nvm-sh/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`.

---

<div class="post-metadata">

**Author:** ![Zapbbx](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/zapbbx/32/251_2.png) [@Zapbbx](https://forum.scrt.network/u/Zapbbx)\
**Post date:** [June 20, 2019, 6:56pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/5 "2019-06-20T18:56:23Z")

</div>

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: 🚨 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: [tar - npm](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 [babel-preset-es2015 -\> babel-preset-env · Babel](http://babeljs.io/env) 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:~$

---

<div class="post-metadata">

**Author:** ![victor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/victor/32/91_2.png) [@victor](https://forum.scrt.network/u/victor)\
**Post date:** [June 20, 2019, 8:48pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/6 "2019-06-20T20:48:08Z")

</div>

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](https://docs.npmjs.com/downloading-and-installing-packages-globally) 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.

---

<div class="post-metadata">

**Author:** ![Zapbbx](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/zapbbx/32/251_2.png) [@Zapbbx](https://forum.scrt.network/u/Zapbbx)\
**Post date:** [June 23, 2019, 1:33am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/7 "2019-06-23T01:33:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chancla](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@chancla](https://forum.scrt.network/u/chancla)\
**Post date:** [June 23, 2019, 1:58am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/8 "2019-06-23T01:58:00Z")

</div>

> [@Zapbbx](#):
>
> 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

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

---

<div class="post-metadata">

**Author:** ![Zapbbx](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/zapbbx/32/251_2.png) [@Zapbbx](https://forum.scrt.network/u/Zapbbx)\
**Post date:** [June 23, 2019, 8:41pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/9 "2019-06-23T20:41:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Zapbbx](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/zapbbx/32/251_2.png) [@Zapbbx](https://forum.scrt.network/u/Zapbbx)\
**Post date:** [June 23, 2019, 9:00pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/10 "2019-06-23T21:00:53Z")

</div>

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: 🚨 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: [tar - npm](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 [babel-preset-es2015 -\> babel-preset-env · Babel](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! 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](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](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](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](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

---

<div class="post-metadata">

**Author:** ![victor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/victor/32/91_2.png) [@victor](https://forum.scrt.network/u/victor)\
**Post date:** [June 27, 2019, 3:46pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/11 "2019-06-27T15:46:40Z")

</div>

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:

```auto
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](https://github.com/nodejs/node-gyp/issues/1414). Does this help?

---

<div class="post-metadata">

**Author:** ![Zapbbx](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/zapbbx/32/251_2.png) [@Zapbbx](https://forum.scrt.network/u/Zapbbx)\
**Post date:** [June 28, 2019, 2:24pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/12 "2019-06-28T14:24:39Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Zapbbx](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/zapbbx/32/251_2.png) [@Zapbbx](https://forum.scrt.network/u/Zapbbx)\
**Post date:** [June 28, 2019, 4:58pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/13 "2019-06-28T16:58:27Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![victor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/victor/32/91_2.png) [@victor](https://forum.scrt.network/u/victor)\
**Post date:** [July 3, 2019, 4:35pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/14 "2019-07-03T16:35:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Zapbbx](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/zapbbx/32/251_2.png) [@Zapbbx](https://forum.scrt.network/u/Zapbbx)\
**Post date:** [July 3, 2019, 5:12pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/15 "2019-07-03T17:12:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Zapbbx](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/zapbbx/32/251_2.png) [@Zapbbx](https://forum.scrt.network/u/Zapbbx)\
**Post date:** [July 7, 2019, 5:47pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/16 "2019-07-07T17:47:23Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Jim](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@Jim](https://forum.scrt.network/u/Jim)\
**Post date:** [July 8, 2019, 7:20pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/17 "2019-07-08T19:20:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![arookie](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/arookie/32/845_2.png) [@arookie](https://forum.scrt.network/u/arookie)\
**Post date:** [July 9, 2019, 4:56pm UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/18 "2019-07-09T16:56:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![arookie](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/arookie/32/845_2.png) [@arookie](https://forum.scrt.network/u/arookie)\
**Post date:** [July 11, 2019, 4:38am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/19 "2019-07-11T04:38:26Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![victor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/victor/32/91_2.png) [@victor](https://forum.scrt.network/u/victor)\
**Post date:** [July 11, 2019, 10:42am UTC](https://forum.scrt.network/t/error-installing-discovery-cli/917/20 "2019-07-11T10:42:48Z")

</div>

@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](https://github.com/yarnpkg/yarn/issues/6231), 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)

[Next page](https://forum.scrt.network/t/error-installing-discovery-cli/917.md?page=2)
