R
R
rd1002021-12-17 23:03:28
Node.js
rd100, 2021-12-17 23:03:28

How to make the path from the disk, not from the folder?

When you enter such a path, for some reason it goes wrong

const chrome = path.resolve('C:\Program Files\Google\Chrome\Application\chrome.exe')

C:\Users\maxim\Desktop\Puppeteer\Program FilesGoogleChromeApplicationchrome.exe ENOENT

How to correctly specify the path?
Initially, the folder is on the desktop.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-12-18
@rd100

I forgot to escape slashes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question