pocka / storybook-addon-vue-info

Info addon for Vue components
https://storybook-addon-vue-info.netlify.com/?path=/story/examples-basic-usage--simple-example
MIT License
164 stars 28 forks source link

ENOENT: no such file or directory node_modules/highlight.js/tools/build.js #78

Closed throrin19 closed 5 years ago

throrin19 commented 5 years ago

Describe the bug Impossible to install the package actually

To Reproduce Steps to reproduce the behavior:

  1. npm i storybook-addon-vue-info
  2. See the error about highlight.js

Expected behavior Your dependency highlight.js has an error which break the install

Screenshots

40151 verbose stack Error: ENOENT: no such file or directory, chmod '/projectFolder/node_modules/highlight.js/tools/build.js'
40152 verbose cwd /projectFolder
40153 verbose Darwin 18.2.0
40154 verbose argv "/Users/user/.nvm/versions/node/v8.12.0/bin/node" "/Users/user/.nvm/versions/node/v8.12.0/bin/npm" "i"
40155 verbose node v8.12.0
40156 verbose npm  v6.5.0
40157 error path /projectFolder/node_modules/highlight.js/tools/build.js
40158 error code ENOENT
40159 error errno -2
40160 error syscall chmod
40161 error enoent ENOENT: no such file or directory, chmod '/projectFolder/node_modules/highlight.js/tools/build.js'
40162 error enoent This is related to npm not being able to find a file.
40163 verbose exit [ -2, true ]

Desktop (please complete the following information):

Additional context

NPM install works fine without your package

pocka commented 5 years ago

@throrin19 Cannot reproduce with steps below (tested on Linux laptop).

$ npx -p @vue/cli vue create storybook
$ cd storybook
$ npx -p @storybook/cli sb init
$ npm i -D storybook-addon-vue-info
# Same result without -D flag

Could you provide a reproduce repo?

throrin19 commented 5 years ago

Ok, I think it was a problem with highlight.js, After test, the error disapear