storybookjs / vue-cli-plugin-storybook

Vue CLI plugin for Storybook
MIT License
279 stars 44 forks source link

vue add storybook command gives Error: EPERM #94

Closed MatthijsBe closed 4 years ago

MatthijsBe commented 4 years ago

Hi everyone,

I'm trying to add vue add storybook so I can use Storybook Docs and MDX.

When running the command:

✔ Successfully installed plugin: vue-cli-plugin-storybook

so far so good, now it's time for some options:

? What do you want to generate? Initial framework
? What storybook version do you want? (Please specify semver range) 5.3.14
? Use Storybook CSF (component story format)? Yes
? Use Storybook Docs? Yes

And then:

�  Invoking generator for vue-cli-plugin-storybook...
 ERROR  Error: EPERM: operation not permitted, open 'C:\Projects\Vue\configurable-prototype-clientapp\.svn\pristine\00\00108274072869f6003cd1cb732feddebbbe1a76.svn-base'
Error: EPERM: operation not permitted, open 'C:\Projects\Vue\configurable-prototype-clientapp\.svn\pristine\00\00108274072869f6003cd1cb732feddebbbe1a76.svn-base'
    at Object.openSync (fs.js:457:3)
    at Object.writeFileSync (fs.js:1282:35)
    at C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\util\writeFileTree.js:25:8
    at Array.forEach (<anonymous>)
    at writeFileTree (C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\util\writeFileTree.js:22:22)
    at async Generator.generate (C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\Generator.js:180:5)
    at async runGenerator (C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:109:3)
    at async invoke (C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:90:3)
C:\Projects\Vue\configurable-prototype-clientapp

Somehow it wants to look inside my .svn folder, is there any work around? or possible fix?

I've tried, npm cache clean, removed node_modules and reinstall no success so far.

What am I using? Node version: 12.16.0 Npm version: 6.14.2 Yarn version: 1.22.0 Vue version : @vue/cli 4.2.3 Storybook version: 5.314

pksunkara commented 4 years ago

I think it might be a vue-cli issue. Can you install other plugins?

On Wed, Mar 4, 2020, 13:59 MatthijsBe notifications@github.com wrote:

Hi everyone,

I'm trying to add vue add storybook so I can use Storybook Docs and MDX.

When running the command:

✔ Successfully installed plugin: vue-cli-plugin-storybook

so far so good, now it's time for some options:

? What do you want to generate? Initial framework

? What storybook version do you want? (Please specify semver range) 5.3.14

? Use Storybook CSF (component story format)? Yes

? Use Storybook Docs? Yes

And then:

� Invoking generator for vue-cli-plugin-storybook...

ERROR Error: EPERM: operation not permitted, open 'C:\Projects\Vue\configurable-prototype-clientapp.svn\pristine\00\00108274072869f6003cd1cb732feddebbbe1a76.svn-base'

Error: EPERM: operation not permitted, open 'C:\Projects\Vue\configurable-prototype-clientapp.svn\pristine\00\00108274072869f6003cd1cb732feddebbbe1a76.svn-base'

at Object.openSync (fs.js:457:3)

at Object.writeFileSync (fs.js:1282:35)

at C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\util\writeFileTree.js:25:8

at Array.forEach (<anonymous>)

at writeFileTree (C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\util\writeFileTree.js:22:22)

at async Generator.generate (C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\Generator.js:180:5)

at async runGenerator (C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:109:3)

at async invoke (C:\Users\Developer\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:90:3)

C:\Projects\Vue\configurable-prototype-clientapp

Somehow it wants to look inside my .svn folder, is there any work around? or possible fix?

I've tried, npm cache clean, removed node_modules and reinstall no success so far.

What am I using? Node version: 12.16.0 Npm version: 6.14.2 Yarn version: 1.22.0 Vue version : @vue/cli 4.2.3 Storybook version: 5.314

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/storybookjs/vue-cli-plugin-storybook/issues/94?email_source=notifications&email_token=AABKU3ZEMDSLKDYQAVBN4HTRFZGBPA5CNFSM4LBGFJY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ISLT22Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABKU35DW5EP7OR62UFB3MLRFZGBPANCNFSM4LBGFJYQ .

MatthijsBe commented 4 years ago

@pksunkara Hmm I think you're right tried with vue add apollo this will give the same error.

I will try another vue cli version, thanks in advance :)