Description
Version
4.4.6
Environment info
Environment Info:
System:
OS: Windows 10 10.0.19041
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Binaries:
Node: 12.15.0 - c:\program files\nodejs\node.EXE
Yarn: 1.22.4 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.4 - c:\program files\nodejs\npm.CMD
Browsers:
Edge: 44.19041.1.0
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.0.0
@vue/babel-plugin-transform-vue-jsx: 1.1.2
@vue/babel-preset-app: 4.4.6
@vue/babel-preset-jsx: 1.1.2
@vue/babel-sugar-functional-vue: 1.1.2
@vue/babel-sugar-inject-h: 1.1.2
@vue/babel-sugar-v-model: 1.1.2
@vue/babel-sugar-v-on: 1.1.2
@vue/cli-overlay: 4.4.6
@vue/cli-plugin-babel: ~4.4.0 => 4.4.6
@vue/cli-plugin-eslint: ~4.4.0 => 4.4.6
@vue/cli-plugin-router: ^4.4.6 => 4.4.6
@vue/cli-plugin-vuex: ^4.4.6 => 4.4.6
@vue/cli-service: ~4.4.0 => 4.4.6
@vue/cli-shared-utils: 4.4.6
@vue/component-compiler-utils: 3.1.2
@vue/preload-webpack-plugin: 1.1.1
@vue/web-component-wrapper: 1.2.0
eslint-plugin-vue: ^6.2.2 => 6.2.2
vue: ^2.6.11 => 2.6.11
vue-eslint-parser: 7.1.0
vue-hot-reload-api: 2.3.4
vue-loader: 15.9.3
vue-style-loader: 4.1.2
vue-template-compiler: ^2.6.11 => 2.6.11
vue-template-es2015-compiler: 1.9.1
npmGlobalPackages:
@vue/cli: Not Found
Steps to reproduce
check out an empty svn folder
vue create vue-cli-fail-svn
cd vue-cli-fail-svn
svn commit
vue add vuex
What is expected?
@vue/cli-plugin-vuex added success
What is actually happening?
🚀 Invoking generator for @vue/cli-plugin-vuex...
Error: EPERM: operation not permitted, open 'E:\vue-cli-fail-svn.svn\pristine\0a\0aab89285d9e32926440bd66a4b34b419750878b.svn-base'
at Object.openSync (fs.js:440:3)
at Object.writeFileSync (fs.js:1265:35)
at \npm\node_modules@vue\cli\lib\util\writeFileTree.js:25:8
at Array.forEach ()
at writeFileTree (\npm\node_modules@vue\cli\lib\util\writeFileTree.js:22:22)
at async Generator.generate (\npm\node_modules@vue\cli\lib\Generator.js:180:5)
at async runGenerator (\npm\node_modules@vue\cli\lib\invoke.js:111:3)
at async invoke (\npm\node_modules@vue\cli\lib\invoke.js:92:3)
vue upgrade also has this problem.
Sometimes vue add or vue upgrade command did not report errors, but it wrote unexpected bytes to svn control files, made the working dir unusable.
SVN control files should be ignored when reading and writing files.
'**/.svn/**'
should be added to