-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update command failed on EPERM #82
Comments
That's very interesting, thanks for the issue. I'm not terribly familiar with running node packages on windows. Could you elaborate on how you originally installed? The commands you ran and such. I'm guess that the |
In windows you can install node in two ways. First is just download the installer from nodejs website. This installs node in C:\Program Files\nodejs. Second way, which is the way I use, is using nvm-windows. This is installing node in %userprofile%\AppData\Roaming\nvm\vx.x.x which create a vx.x.x folder for each version. C:\Program Files\nodejs is a symlink to the current version you set in nvm-windows. Except from that, all npm commands are the same. |
I wonder if the |
This is what I get for doctor:
Error: spawn ssh ENOENT |
The above is probably because I used cmd.exe. If I use mingw64 I get this although I can do ssh without a problem: $ sicksync doctor
|
I'm using sicksync on windows with mingw. I installed sicksync globally using node 6.9.5 installed with nvm-windows.
When I run the update command I see a successful update of the remote machine but then I get an error about my local machine. After that, sicksync is not installed anymore. Error is:
[Function: getHostname] '\u001b[31mUpdate failed! Please run manually\u001b[39m' { Error: Command failed: npm i -g sicksync
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\sicksync\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "i" "-g" "sicksync"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! path C:\Program Files\nodejs\sicksync
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\sicksync'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\sicksync'
npm ERR! at Error (native)
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\Program Files\nodejs\sicksync' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! xxx\npm-debug.log
killed: false,
code: 4294963248,
signal: null,
cmd: 'npm i -g sicksync' }
The text was updated successfully, but these errors were encountered: