oclif/plugin-update

First `update` after install on widows shows `ENOENT` error

mdonnalley opened this issue · 2 comments

Describe the bug
First update after a new install of a CLI on windows shows this error

    Error: ENOENT: no such file or directory, open 'C:\Users\username\AppData\Local\sf\client\bin\sf.cmd'
    Code: ENOENT

The update command still succeeds, however.

To Reproduce
Steps to reproduce the behavior:

  1. On windows machine
  2. Install salesforce CLI from https://developer.salesforce.com/tools/salesforcecli
  3. run sf update

Expected behavior

No error to be shown during the first update.

Environment (please complete the following information):

  • OS & version: windows
  • Shell/terminal & version: powershell 7.2.4, cmd.exe

This issue has been linked to a new work item: W-15664055

Closing this since it's a duplicate of #798