Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install the package #102

Open
toppyc4 opened this issue Oct 29, 2022 · 3 comments
Open

Can not install the package #102

toppyc4 opened this issue Oct 29, 2022 · 3 comments

Comments

@toppyc4
Copy link

toppyc4 commented Oct 29, 2022

I try to install the package with npm to my next.js app that have react 18
and got :

npm ERR! code 1
npm ERR! path D:\Code\Google-map-Hackathon\test-next-app\node_modules\@ubilabs\google-maps-react-hooks
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c C:\Users\toppy\AppData\Local\Temp\postinstall-e682e399.cmd
npm ERR! npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility

with bunch of other errors
I try to install other package (react-hot-toast) and It work fine

@toppyc4
Copy link
Author

toppyc4 commented Oct 29, 2022

Also I can not view your example locally when I run npm run: start: places-autocomplete-example
I got:

> start:places-autocomplete-example
> EXAMPLE=places-autocomplete run-p start:library start:example

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

@nora-soderlund
Copy link

This seems to originate from the 1.6.0 release and upwards (1.6.2 right now).

1.5.3 still works: npm install @ubilabs/[email protected]

@yfr
Copy link
Member

yfr commented Nov 14, 2022

This is a problem with environment variables and setting them. Currently, how the env is set, only works for *nix systems and not for windows. That's what the error message say, I think.

https://www.npmjs.com/package/cross-env seems to handle these cases. It's in maintenance mode, but seems to still do what needs to be done.

@BiniCodes May you have a look?

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

No branches or pull requests

3 participants