Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Trouble installing on windows #26

Closed
amcassetti opened this issue Jan 17, 2020 · 2 comments
Closed

Trouble installing on windows #26

amcassetti opened this issue Jan 17, 2020 · 2 comments

Comments

@amcassetti
Copy link

npm install results in the following error:

'ln' is not recognized as an internal or external command, operable program or batch file.

@abcoathup
Copy link
Contributor

Hi @amcassetti,

I'm sorry you ran into this issue.

OpenZeppelin Network.js uses preinstall to create a symlink for React.
ln doesn't exist on Windows.
https://github.com/OpenZeppelin/openzeppelin-network.js/blob/master/package.json#L14

You can try to import hooks directly from @openzeppelin/network/lib/react

Example:

import { useWeb3Network, useEphemeralKey, useWeb3Injected } from '@openzeppelin/network/lib/react';

According to this StackOverflow answer, you can create a soft link using the New-Item cmdlet.
(Thanks @nventuro: OpenZeppelin/starter-kit-gsn#44 (comment))

Alternatively, you could use Windows Subsystem for Linux, this is what I use on Windows 10.

@amcassetti
Copy link
Author

Thanks for quick response! Installing using the gitbash console worked

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants