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

npm install purecss Fails on windows 10 #647

Closed
ghost opened this issue May 10, 2017 · 7 comments
Closed

npm install purecss Fails on windows 10 #647

ghost opened this issue May 10, 2017 · 7 comments

Comments

@ghost
Copy link

ghost commented May 10, 2017

Description

npm install purecss Fails on windows 10

I tried open cmd as adminastrator and change permissions for node_module folder,but still fails...

Log

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
npm WARN angular-for-wordpress@1.0.0 No repository field.
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" "install" "purecss"
npm ERR! node v7.2.0
npm ERR! npm  v3.10.9
npm ERR! path c:\xampp\htdocs\Angular\node_modules\.staging\purecss-3eef8c0b
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename

npm ERR! Error
npm ERR!     at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:25:7)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm ERR!     at FSReqWrap.oncomplete (fs.js:111:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'c:\xampp\htdocs\Angular\node_modules\.staging\purecss-3eef8c0b' -> 'c:\xampp\htdocs\Angular\node_modules\purecss'
npm ERR!  { Error
npm ERR!     at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:25:7)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm ERR!     at FSReqWrap.oncomplete (fs.js:111:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'c:\xampp\htdocs\Angular\node_modules\.staging\purecss-3eef8c0b' -> 'c:\xampp\htdocs\Angular\node_modules\purecss' parent: 'angular-for-wordpress' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
@redonkulus
Copy link
Contributor

Does this happen with any other packages? I do not have Windows so its hard for me to test.

If anyone else with Windows could test this out, that would help.

@ghost
Copy link
Author

ghost commented May 12, 2017

no,it does not happens with any other packages.

@redonkulus
Copy link
Contributor

Looks like this is related to graceful-fs library? I'm not sure there is much that can be done here.

@Calinou
Copy link

Calinou commented Nov 10, 2017

I have tested this on Windows 10 with Node.js 9.1.0, and cannot reproduce this issue with npm 5.5.1 and Yarn 1.3.2. (I used npm install --save purecss / yarn add purecss to test this.)

@redonkulus
Copy link
Contributor

@Calinou thanks for testing. can you try on node 6 and 8 as well?

@Calinou
Copy link

Calinou commented Nov 13, 2017

I just tested it on Node.js 6.12.0 and 8.9.1, and it works.

@billti
Copy link

billti commented Dec 22, 2017

I just tried this and got the same failure. Updating Node.js didn't help.

I narrowed it down in your devDependencies to "grunt-contrib-compress": "^1.4.0". Looking at their issues it appears to be the same as described in gruntjs/grunt-contrib-compress#190 . This fixed shortly after 1.4.0, and indeed updating that dependency to 1.4.3 resolves the issue for me.

@KeiroD KeiroD closed this as completed in 2fd02f1 Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants