In yarn global add babelthe process of installing the package , the following error was reported:
error An unexpected error occurred: "EPERM: operation not permitted, unlink 'C:\\Users\\xxx\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\.bin\\serve'".
solve
C:\\Users\\xxx\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\.bin\\The content in the directory serveis occupied. After
thinking about it carefully, it is currently being used servein another project. After closing it, re-run it yarn global add babeland it will be fine.

The reason for this problem is that when the package is installed, the previous .binfile will be deleted and then regenerated. Because the file is occupied, the file cannot be deleted, so an error will be reported. You only need to close the corresponding occupied program.
When the package is installed, the previous
.binfiles will be deleted and regenerated
. When the package is installed for the first time,babelthe creation time is as follows:
When the other package is installed for the second time,babelthe creation time is as follows: It
can be seen that the.binfolder is created when the package is installed for the second time. The following hasbabelbeen recreated.
In addition,
if you open the.binfolder while installing the package, you can see.binthat the folder will be deleted at the end of the package , and then regenerate
Read More:
- Rsync Error: Operation not permitted [How to Solve]
- [Solved] NPM Install Error: EPERM: operation not permitted, mkdir xxx
- [Solved] hcitool Error: Set scan parameters failed: Operation not permitted
- Docker Build Error: Failed to get D-Bus connection: Operation not permitted [Solved]
- json-server Error: EPERM: operation not permitted, mkdir ‘C:\Progra m Files\nodejs\node_
- Wildfly (JBoss) startup error: ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation (“add”) failed
- Error Report of Yarn Create UMI
- Error: Comments are not permitted in JSON [How to Solve]
- Puppeteer Error: Chromium revision is not downloaded. Run “npm install“ or “yarn install“
- [Solved] UE4 Error: Couldn‘t find file for package *** requested by async loading code. NameToLoad: ***
- [Solved] Andriod Error: Cleartext HTTP traffic to xxx not permitted
- [Solved] Android Networking error: CLEARTEXT communication to www.xxxxx.xyz not permitted by network security policy
- [Solved] Yarn install Error: “error Found incompatible module.”
- [Solved] yarn error ExitCodeException exitCode=127
- [Solved] HTTP Error 405.0-Method Not Allowed occurs in the Put operation of the REST service on IIS7.5
- How to Solve Git Error: error: unable to unlink old ‘***.jar‘
- [Solved] Exception in thread “main“ org.apache.spark.SparkException: When running with master ‘yarn‘ either
- How to Solve Yarn environment installation dependency error: (info [email protected])
- [Solved] bin/hive Startup Error: Operation category READ is not supported in state standby
- Solution of Hibernate paging report only entering result set and not supporting requested operation

