windows git bash shell

Open
#14 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js

Research direction

Reproduce sfw npm update in Git Bash on Windows and inspect dist/sfw.mjs, especially trySymlinkLatest and downloadAndVerifyReleaseSync, where the stack trace reports the failure. Determine the expected Windows behavior for the .sfw-cache/latest path, then verify that the update completes successfully without the reported EPERM error.

Written by the indexing model from the issue text.

Description

bug

Running in MIGW64 provided by git for windows
sfw npm update
/ downloading latest sfw binary...Failed to create latest symlink: Error: EPERM: operation not permitted, symlink 'C:\Users\nik\AppData\Roaming\npm\node_modules\sfw.sfw-cache\v0.12.22\sfw-free-windows-x86_64.exe' -> 'C:\Users\nik\AppData\Roaming\npm\node_modules\sfw.sfw-cache\latest'
at Object.symlinkSync (node:fs:1890:11)
at trySymlinkLatest (file:///C:/Users/nik/AppData/Roaming/npm/node_modules/sfw/dist/sfw.mjs:2232:9)
at downloadAndVerifyReleaseSync (file:///C:/Users/nik/AppData/Roaming/npm/node_modules/sfw/dist/sfw.mjs:2259:5)
at async ensureLatestBinary (file:///C:/Users/nik/AppData/Roaming/npm/node_modules/sfw/dist/sfw.mjs:2279:12)
at async main (file:///C:/Users/nik/AppData/Roaming/npm/node_modules/sfw/dist/sfw.mjs:2294:20) {
errno: -4048,
code: 'EPERM',
syscall: 'symlink',
path: 'C:\Users\nik\AppData\Roaming\npm\node_modules\sfw\.sfw-cache\v0.12.22\sfw-free-windows-x86_64.exe',
dest: 'C:\Users\nik\AppData\Roaming\npm\node_modules\sfw\.sfw-cache\latest'
}

Dominant language
No language data
Stars
271
Forks
8
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SocketDev/sfw-free

All issues in SocketDev/sfw-free

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.