-
Notifications
You must be signed in to change notification settings - Fork 3k
npm5 not working on the windows platform (Error: EPERM: operation not permitted...) #19004
Comments
I am also experiencing this issue on windows. I tried different NPM versions from 5.0.4 to current without success. I tried with the node 6 LTS versions and with node 8 versions. |
This one solved the #17671 error for me: $ npm i -f <package>
# or
$ npm install --force <package> Maybe related here. |
The |
I just installed a fresh
Then I did a npm cache verify and tried to install vuex again, and bingo! it worked. |
This issue has now become the main problem with node since 7.10.1. Because of this, our project can't move past node 7.10.1, even though we would have liked to move to all latest versions of node 8 (and later to node 9..).. Has NPM decided that they will not fix this issue? It's hard to believe since anyone using Windows and installing a native dependency (from node-sass to xml libraries and more) will run into this issue. We are considering moving to yarn because of this since it has killed our use of npm. |
For me, Yarn doesn't even install Throwing error because win32 is an unsupported platform. |
|
So it is pretty clear that what is happening is that the cache is being corrupted somehow on installation. It is a pretty minor corruption, since Now if someone could simply identify what is being changed when the cache is verified, we would be much closer to identifying the root issue. |
Apparently @Cito has a solution at the end of this error but the solution has yet to be merged to master |
@SiggeSeb I know, and it works like a charm. |
I'm getting this trying to use angular-cli, under Windows 10, trying to do "ng new myAppName" running as administrator as suggested in the error message does not solve it.
|
In Windows, you can try to start the command line using "Run as administrator". This option may solve the problem. |
@puttuo "Run as administrator" didn't solve the problem for me. |
For me, every time I run a command it gives an error. Then the second time it works out. 1 st wrong I use windows 7 x64 |
npm install -g yarn |
Does anyone have a solution for this other than downgrading or switching to |
5.6.0 solves this problem! |
@doberkofler can you a be a bit more specific about what problem was solved and when it was solved? The release notes do not mention this bug specifically and nothing in the 5.6.0 notes appears directly related. I did notice that the 5.1.0 release notes mention:
This seemed of interested to me: I got involved with this thread because I'm getting EPERM errors with Given that a wide variety of users seem to be getting these EPERM errors in a wide variety of situations, It seems to me like a major widespread problem that deserves mention in the release notes if it was fixed. Since it's not in the release notes and there's not much detail in your issue-close comment I'm feeling skeptical. |
@uglycoyote I think @doberkofler is referring to the first item in the 5.6.0 notes
#19054 is the currently approved/merged fix for this issue |
@doberkofler Upgrading to 5.6.0 worked for me, thanks. |
I had a similar problem with an Azure automated Git deployment using 5.3.0, switching to to 5.6.0 worked. Thanks |
@doberkofler This issue is still happening in 5.6 (even running as Administrator, only fix i've found so far is setting permissions on the node_modules folder to "Everyone" will full perms)... UPDATE: |
I'm opening this issue because:
What's going wrong?
npm 5 is not working at all on the windows platform (most likely because of optional dependencies)
How can the CLI team reproduce the problem?
Install webpack, then uninstall and try to install again always leads to this error as visible in the following output:
supporting information:
npm -v
prints: 5.5.1node -v
prints: 8.8.1npm config get registry
prints: http://registry.npmjs.org/The text was updated successfully, but these errors were encountered: