'npm error transpileDependencies.map is not a function
Solution 1:[1]
If you pulled your project from Github or somewhere else, you probably lost something. Just download it again and fix it.
Cause of error: Project lost file!
Solution 2:[2]
I have faced this problem today. It was a project i was working on withtout any remote version so i didn't use Github in my case. To solve this problem, i compared "important files" on my project with those on another project where i was actually not having such issue. By "important files", i mean package.json and all config files.
So, to solve this, i change the version of @vue/cli-plugin-babel to "~5.0.0".
package.json
"devDependencies": {
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-router": "~5.0.0",
"@vue/cli-plugin-vuex": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"vue-cli-plugin-tailwind": "~3.0.0" }
then, i deleted node_modules folder. And i finally, i ran the command :
npm i
I hope, i helped.
Solution 3:[3]
If you have used VS or VS code to clone the repository you may face this error. Delete the repository folder in local and try to clone repository again using Git clone command.
Solution 4:[4]
I've got the same error in Node.js v16.14.2. This error hasn't seen anymore after I've downgraded the version of Node.js to 16.13.2. Please check your version.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mr.Z |
| Solution 2 | Gbetnkom Jeff |
| Solution 3 | Kathirvel |
| Solution 4 | mclemore_oto |

