Streetmerchant: MAC copy .env-example doesn't work

Created on 1 Nov 2020  Â·  32Comments  Â·  Source: jef/streetmerchant

When I'm trying to copy .env-example .env ;
it says "-bash: copy: command not found"
Can someone help me?
mac OS Catalina 10.15.7

bug

Most helpful comment

I appreciate your help, but I still have this issue:
-bash: cd: nvidia-snatcher: No such file or directory
And I can't still find env file in my folder

And I don't want to read all this stuff to just get one program working, I thought that it is a regular issue and you can help me, I don't know a thing about js and don't want to get into, to run 1 program. So please just tell me what I need to type.

While there are several ways to do it, here's an easy way to get you started with the mac terminal. Access the directory that nvidiasnatcher is installed in utilizing the two commands below:

  1. ls (this command prints the folders and files in a directory)
  2. cd foldername (this command enters a specific folder)

Once you've accessed the nvidiasnatcher folder, you'll notice that using the ls command won't display the .env-example file or any other file that starts with a ".", you can display them by using ls -a

You can copy the file inside the folder by using the command:
cp .env-example .env

Then you can delete .env-example with the command:
rm .env-example

Then you can edit .env with the command:
open -a TextEdit .env

All 32 comments

Its not mac support forum.
and its clearly not a bug.

Nvidia-snatcher not only for windows, and it is bug because it is a problem. Maybe someone with Mac OS encountered this issue too.

This isn't a bug - you're not using the correct command to copy a file. Basic knowledge of the command shell is required to get this up and running.

'copy' is not how you copy a file in macos - the correct command is 'cp'.

Okay, thank you. I never before used command shell so I don't have a clue what commands I need

Now I have this issue:
cp: .env-example: No such file or directory
However I have Nvidia snatcher folder

cd nvidia-snatcher && cp .env-example .env

@yarkon55, I encourage you to instead close this bug, use StackOverflow or Google for a general overview of command shells and using man to read the manual for certain commands. For example, man cp.

I appreciate your help, but I still have this issue:
-bash: cd: nvidia-snatcher: No such file or directory
And I can't still find env file in my folder

And I don't want to read all this stuff to just get one program working, I thought that it is a regular issue and you can help me, I don't know a thing about js and don't want to get into, to run 1 program. So please just tell me what I need to type.

I appreciate your help, but I still have this issue:
-bash: cd: nvidia-snatcher: No such file or directory
And I can't still find env file in my folder

And I don't want to read all this stuff to just get one program working, I thought that it is a regular issue and you can help me, I don't know a thing about js and don't want to get into, to run 1 program. So please just tell me what I need to type.

While there are several ways to do it, here's an easy way to get you started with the mac terminal. Access the directory that nvidiasnatcher is installed in utilizing the two commands below:

  1. ls (this command prints the folders and files in a directory)
  2. cd foldername (this command enters a specific folder)

Once you've accessed the nvidiasnatcher folder, you'll notice that using the ls command won't display the .env-example file or any other file that starts with a ".", you can display them by using ls -a

You can copy the file inside the folder by using the command:
cp .env-example .env

Then you can delete .env-example with the command:
rm .env-example

Then you can edit .env with the command:
open -a TextEdit .env

Hi, it doesn't check usa amazon, and b&h but I put them in file.
It saying this:
error :: ✖ [nvidia] Unknown country usa,canada

Thanks for all the help everyone. I'm going to close this issue, but feel free to continue to ask for help on setting up the bot.

Hi, it doesn't check usa amazon, and b&h but I put them in file.
It saying this:
error :: ✖ [nvidia] Unknown country usa,canada

What's your .env look like now after you copied it over?

Then you can delete .env-example with the command:
rm .env-example

I would suggest not removing .env-example in case someone would like to revert back to defaults or have it has reference.

It looks like this:
COUNTRY="usa,canada"
DESKTOP_NOTIFICATIONS="true"
IN_STOCK_WAIT_TIME="0"
LOG_LEVEL="info"
MAX_PRICE_SERIES_3070="900"
NVIDIA_ADD_TO_CART_ATTEMPTS="20"
OPEN_BROWSER="true"
PAGE_TIMEOUT="100000"
SCREENSHOT="false"
SHOW_ONLY_BRANDS="asus,evga,gigabyte,msi,nvidia,zotac"
SHOW_ONLY_SERIES="3070"
STORES="amazon,bandh,bestbuy,bestbuy-ca,newegg,newegg-ca"

But I don't see any amazon or bandh in checks, and can I choose 2 countries? Or I need to only choose one

COUNTRY is only in use for nvidia, which is deprecated. (I should put a log note.). It also doesn't accept multiple inputs.

I'd also remove NVIDIA_ADD_TO_CART_ATTEMPTS, because of the above.

Didn't help, still can't see b&h and amazon(

I'd also include your USER_AGENT. They could be blocking requests from the default agent.

Do I need to put something in it? Or just leave like that "USER_AGENT="

I leave it empty and still don't search amazon and b&h

Get your user agent here

and set it like this:

USER_AGENT=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36

I would also make sure test from bottom to top, i.e. backup your .env and see when it stops working.

Starting with something simple like this:

STORES=bandh

Then continuing onward.

Is this good: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15
?

Looks good to me.

I pasted it, but still doesn't search amazon)

Do a more minimal config like this:

STORES=amazon

What does it print out?

I don't need brackets there?
Like I suppose to do this right? STORES="amazon"

Go through these steps: https://github.com/jef/nvidia-snatcher/issues/663

Let me know if you still have issues.

I don't need brackets there?
Like I suppose to do this right? STORES="amazon"

You can use with or without quotes.

I have tried npm i && npm run start , but still same
Going to try your next suggestion

I don't have nvidia-snatcher folder in nvidia-snatcher, so what do I do next?

Try and use HEADLESS=false

Here's my config that I just tested with:

STORES=amazon,bandh,evga
HEADLESS=false
USER_AGENT=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
                    $$\       $$\ $$\                                                  $$\               $$\
                    \__|      $$ |\__|                                                 $$ |              $$ |
$$$$$$$\ $$\    $$\ $$\  $$$$$$$ |$$\  $$$$$$\           $$$$$$$\ $$$$$$$\   $$$$$$\ $$$$$$\    $$$$$$$\ $$$$$$$\   $$$$$$\   $$$$$$\
$$  __$$\\$$\  $$  |$$ |$$  __$$ |$$ | \____$$\ $$$$$$\ $$  _____|$$  __$$\  \____$$\\_$$  _|  $$  _____|$$  __$$\ $$  __$$\ $$  __$$\
$$ |  $$ |\$$\$$  / $$ |$$ /  $$ |$$ | $$$$$$$ |\______|\$$$$$$\  $$ |  $$ | $$$$$$$ | $$ |    $$ /      $$ |  $$ |$$$$$$$$ |$$ |  \__|
$$ |  $$ | \$$$  /  $$ |$$ |  $$ |$$ |$$  __$$ |         \____$$\ $$ |  $$ |$$  __$$ | $$ |$$\ $$ |      $$ |  $$ |$$   ____|$$ |
$$ |  $$ |  \$  /   $$ |\$$$$$$$ |$$ |\$$$$$$$ |        $$$$$$$  |$$ |  $$ |\$$$$$$$ | \$$$$  |\$$$$$$$\ $$ |  $$ |\$$$$$$$\ $$ |
\__|  \__|   \_/    \__| \_______|\__| \_______|        \_______/ \__|  \__| \_______|  \____/  \_______|\__|  \__| \_______|\__|
1.7.0

[6:00:59 PM] warn :: evga is deprecated since they only support queuing
[6:00:59 PM] info :: ℹ selected stores: amazon, bandh, evga
[6:00:59 PM] info :: ℹ selected series: 3070, 3080, 3090
[6:00:59 PM] info :: ✔ sound player found: afplay
[6:01:04 PM] error :: Failed to parse card: PNY GeForce RTX 3070 8GB Dual Fan Ampere Graphics Card
[6:01:05 PM] error :: Failed to parse card: PNY NVIDIA GeForce RTX 3070 Dual Fan 8GB GDDR6 Ray-Tracing Graphics Card, 5888 Core, 1500MHz GPU, 1725MHz Boost
[6:01:14 PM] info :: ✖ [amazon] [pny (3080)] xlr8 :: OUT OF STOCK
[6:01:16 PM] info :: ✖ [bandh] [gigabyte (3080)] gaming oc :: OUT OF STOCK
[6:01:18 PM] info :: ✖ [amazon] [pny (3080)] xlr8 rgb :: OUT OF STOCK
[6:01:20 PM] info :: ✖ [bandh] [zotac (3080)] trinity :: OUT OF STOCK
[6:01:21 PM] info :: ✖ [amazon] [msi (3080)] gaming x trio :: OUT OF STOCK
[6:01:24 PM] info :: ✖ [bandh] [msi (3080)] gaming x trio :: OUT OF STOCK

If you don't see the browser using those links, I would delete the folder and reclone and start from the beginning.

YEP, its working , but it reload cards on amazon and it just swap my screen to chronium, how to set that it would run in bg

Any help on that?

I'd remove the HEADLESS=false part.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dochodges picture dochodges  Â·  5Comments

zhirzzh picture zhirzzh  Â·  5Comments

louij2 picture louij2  Â·  3Comments

wdrury-uk picture wdrury-uk  Â·  4Comments

fabillopr picture fabillopr  Â·  3Comments