starter-kit-tutorial icon indicating copy to clipboard operation
starter-kit-tutorial copied to clipboard

Can't install (Windows 10)

Open KomplexMojo opened this issue 5 years ago • 7 comments

Following the install instructions I can't install on Windows 10. Looks like it can't find the WebSocket-Node.git

1225 verbose stack Error: spawn git ENOENT 1225 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) 1225 verbose stack at onErrorNT (internal/child_process.js:456:16) 1225 verbose stack at processTicksAndRejections (internal/process/task_queues.js:80:21) 1226 verbose cwd D:\OpenZeppelin 1227 verbose Windows_NT 10.0.17763 1228 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "@openzeppelin/[email protected]" 1229 verbose node v12.13.1 1230 verbose npm v6.12.1 1231 error code ENOENT 1232 error syscall spawn git 1233 error path git 1234 error errno ENOENT 1235 error enoent Error while executing: 1235 error enoent undefined ls-remote -h -t ssh://[email protected]/web3-js/WebSocket-Node.git 1235 error enoent 1235 error enoent 1235 error enoent spawn git ENOENT 1236 error enoent This is related to npm not being able to find a file. 1237 verbose exit [ 1, true ]

KomplexMojo avatar Dec 05 '19 17:12 KomplexMojo

Using yarn.

PS D:\OpenZeppelin> yarn global add @openzeppelin/[email protected] yarn global v1.21.0 [1/4] Resolving packages... warning @openzeppelin/cli > @types/[email protected]: This is a stub types definition. web3 provides its own type definitions, so you do not need this installed. warning @openzeppelin/cli > [email protected]: WARNING: This package has been renamed to @truffle/config. warning @openzeppelin/cli > truffle-config > [email protected]: WARNING: This package has been renamed to @truffle/provider. warning @openzeppelin/cli > truffle-config > [email protected]: WARNING: This package has been renamed to @truffle/error. warning @openzeppelin/cli > @types/web3 > web3 > web3-core > @types/[email protected]: This is a stub types definition for bignumber.js (https://github.com/MikeMcl/bignumber.js/). bignumber.js provides its own type definitions, so you don't need @types/bignumber.js installed! warning @openzeppelin/cli > truffle-config > truffle-provider > [email protected]: WARNING: This package has been renamed to @truffle/interface-adapter. error Couldn't find the binary git info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

KomplexMojo avatar Dec 05 '19 17:12 KomplexMojo

I see that the latest version is 2.6.0. Tried to install. Same issue.

KomplexMojo avatar Dec 05 '19 17:12 KomplexMojo

Hey/ @KomplexMojo! Sorry to hear about your experience. Have you tried windows build tools? They helped many people on windows to install node dependencies.

ylv-io avatar Dec 06 '19 13:12 ylv-io

Thanks for the feedback. I'm technical but fairly new to this so I'm stumbling around a bit.

I do have windows build tools installed but I re-installed it just in case.

Could this be a permissions thing on the Web-Sockets git?

I tried.

$ git ls-remote [email protected]:web3-js/WebSocket-Node.git The authenticity of host 'github.com (192.30.253.112)' can't be established. RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts. [email protected]: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

KomplexMojo avatar Dec 06 '19 18:12 KomplexMojo

same as this issue. git dependency in install code: https://github.com/ethereum/web3.js/issues/3071

KomplexMojo avatar Dec 06 '19 18:12 KomplexMojo

The web3 issue suggests installing Git for Windows

Alternatively you may want to consider using Windows Subsystem for Linux (WSL). I previously developed on Windows 7 & 10 but have a much easier time with WSL.

abcoathup avatar Dec 06 '19 19:12 abcoathup

@KomplexMojo I assume the issue is that you need to install Git.

For setting up for Solidity Smart Contract Development on Windows please see the following guide: https://forum.openzeppelin.com/t/solidity-smart-contract-development-on-windows/2110

There is an Issue with OpenZeppelin Network.js on Windows https://github.com/OpenZeppelin/openzeppelin-network.js/issues/27 though you can install using Git Bash terminal if using native Windows.

abcoathup avatar Jan 31 '20 06:01 abcoathup