FIXED!: Drag & Drop Issue Status & Workaround

To be honest, I did not want to do this, because in my opinion, why should I use the command line and type letters with the keyboard instead of using a GUI and just drag n drop a folder. But OK, I am not this old.

It took me a while to be able to use the CLI. Therefore, here’s a beginner’s HowTo:

  1. My needs are simple: I just want to deploy a local folder.
  2. Install Node.js.
  3. Open cmd.exe.
  4. Execute npm install netlify-cli -g. Wait some minutes.
  5. Execute netlify login. In the new browser window click “Authorize”
  6. Execute netlify deploy -p --dir=<folder to publish> --site=<netlify destination>, e. g.
    netlify deploy -p --dir=/Users/.../publish/wwwroot --site=beautiful-uploader-234269.

That’s all.

Philipp

I had to reinstall Windows and Visual Studio. During the VS installation, I chose to install node.js. The problem was, that no environment variable was created and therefore, the command npm install netlify-cli -g was not known. To solve this, simply add the new environment variable:

  1. Win+R
  2. sysdm.cpl > OK
  3. Advanced > Environment variables…
  4. Under “System variables” double click “Path”
  5. Add new one at the end, e.g. “C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VisualStudio\NodeJs”

Also make sure to run cmd as administrator.

Thanks for sharing this with the community!

I got a new laptop and therefore had to reinstall Visual Studio and so on.
I followed above steps, but when I exceute
netlify deploy -p --dir=/Users/.../publish/wwwroot --site=beautiful-uploader-234269
(of course with my site name), I only get the error

Netlify Build
────────────────────────────────────────────────────────────────

Version
@netlify/build 33.5.0

Flags
{}

Configuration error
────────────────────────────────────────────────────────────────

Error message
Failed retrieving site data for site [my site name]: Not Found. Double-check your login status with ‘netlify status’ or contact support with details of your error.

'netlify status returns my credentials, so it looks like everything is fine.

Any idea what’s wrong?

Hi, @Philipp. I’ve forwarded this to the helpdesk in the new topic you created here:

Please find the solution here.