Cogoport / cogo-toast

Beautiful, Zero Configuration, Toast Messages for React. Only ~ 4kb gzip, with styles and icons
https://cogoport.github.io/cogo-toast
MIT License
673 stars 1 forks source link

There is an install error at 4.2.2 version #53

Closed temacurbflow closed 4 years ago

temacurbflow commented 4 years ago
error /Users/user/path/node_modules/cogo-toast: Command failed.
Exit code: 1
Command: cd docs && yarn install
Arguments: 
Directory: /Users/user/path/node_modules/cogo-toast
Output:
/bin/sh: line 0: cd: docs: No such file or directory

macos

harshzalavadiya commented 4 years ago

same reproducable on linux as well

avindra commented 4 years ago

Same. Calling that command install registers it as part of the npm installation lifecycle:

https://docs.npmjs.com/misc/scripts

Note that this also impacts yarn as yarn supports those lifecycle methods.

You can probably fix this by just calling it something else.

avindra commented 4 years ago

@anmolmahatpurkar maybe you can call it as install:doc or something like that? not totally clear on the intent of that script.

anmdotdev commented 4 years ago

This was an unintended mistake. My apologies. Fixed in v4.2.3 :)