Skip to content
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

Installation error on windows #446

Closed
omerts opened this issue Mar 3, 2016 · 7 comments

Comments

@omerts
Copy link

commented Mar 3, 2016

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "standard"
npm ERR! node v4.3.1
npm ERR! npm  v3.7.3
npm ERR! path C:\Program Files\nodejs\node_modules\standard
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename

npm ERR! Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\standard' -> 'C:\Program Files\nodejs\node_modules\.standard.DELETE'
npm ERR!     at moveAway (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:38:5)
npm ERR!     at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:27:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\standard' -> 'C:\Program Files\nodejs\node_modules\.standard.DELETE'
npm ERR!     at Error (native)
npm ERR!  [Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\standard' -> 'C:\Program Files\nodejs\node_modules\.standard.DELETE']

It looks like the paths are wrong.
Nothing under C:\Program Files\nodejs\node_modules, that has to do with standard. There are two folders, npm and babel-cli.
Node version 4.3.1
Npm version 3.7.3

@LinusU

This comment has been minimized.

Copy link
Member

commented Mar 3, 2016

I think that this is a bug in npm

@omerts

This comment has been minimized.

Copy link
Author

commented Mar 6, 2016

updated node + npm, still same error
node v 5.7.1
npm v 3.8.0

@feross

This comment has been minimized.

Copy link
Member

commented Mar 6, 2016

Looks like you installed standard from an Adminstrator command line and now
you're trying to install it again from a normal command line.

This won't work because it can't delete the old one. Use an Administrator
command line.
On Sun, Mar 6, 2016 at 03:54 omerts notifications@github.com wrote:

updated node + npm, still same error
node v 5.7.1
npm v 3.8.0


Reply to this email directly or view it on GitHub
#446 (comment).

@omerts

This comment has been minimized.

Copy link
Author

commented Mar 6, 2016

I am using administrator command line. It looks like it is trying to delete ".standard.DELETE", from a wrong path, which does not exist.

@LinusU

This comment has been minimized.

Copy link
Member

commented Mar 6, 2016

If it didn't exist it would trigger ENOENT, not EPERM...

@feross

This comment has been minimized.

Copy link
Member

commented Mar 7, 2016

Sorry, this is not a standard issue. You might have better luck posting this issue at https://github.com/npm/npm

@feross feross closed this Mar 7, 2016

@omerts

This comment has been minimized.

Copy link
Author

commented Mar 9, 2016

uninstalling and reinstalling node.js fixed it for me. sorry :)

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.