seek-oss / html-sketchapp-cli

Quickly generate Sketch libraries from HTML documents and living style guides, powered by html-sketchapp
MIT License
633 stars 31 forks source link

Error: EISDIR when running `npm run html-sketchapp-install` #74

Open matt-bailey opened 4 years ago

matt-bailey commented 4 years ago

My environment:

$ node -v && npm -v                              
v11.15.0
6.11.3

I'm trying to install html-sketchapp-cli but I'm running into issues. I've looked through the other issues here on github, but I don't think any are related? It's likely I'm doing something wrong, or my environment is not set up correctly, but I wonder if anyone can help?

Firstly I installed html-sketchapp with npm i @brainly/html-sketchapp. Then I installed html-sketchapp-cli into a simple test project using npm install --save-dev html-sketchapp-cli. Then I ran the npm run html-sketchapp-install script as directed in the readme.

However, running html-sketchapp-install fails with the following error:

$ npm run html-sketchapp-install

> html-sketchapp@1.0.0 html-sketchapp-install /Users/mpkb/Sites/html-sketchapp
> html-sketchapp install

Detected html-sketchapp v4.4.0
Downloading from http://github.com/brainly/html-sketchapp/releases/download/v4.4.0/asketch2sketch-4-4-0.sketchplugin.zip
Extracting to /Users/mpkb/Sites/html-sketchapp/node_modules/html-sketchapp-cli/.tmp
Detected html-sketchapp v4.4.0
html-sketchapp install

Install the html-sketchapp Sketch plugin

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]
  --config   Path to JavaScript config file

{ [Error: EISDIR: illegal operation on a directory, open '/Users/mpkb/Sites/html-sketchapp/node_modules/html-sketchapp-cli/.tmp/asketch2sketch-4-4-0.sketchplugin/Contents/']
  errno: -21,
  code: 'EISDIR',
  syscall: 'open',
  path:
   '/Users/mpkb/Sites/html-sketchapp/node_modules/html-sketchapp-cli/.tmp/asketch2sketch-4-4-0.sketchplugin/Contents/' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! html-sketchapp@1.0.0 html-sketchapp-install: `html-sketchapp install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the html-sketchapp@1.0.0 html-sketchapp-install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mpkb/.npm/_logs/2019-11-18T15_53_09_481Z-debug.log

My limited knowledge would suggest that the script thinks asketch2sketch-4-4-0.sketchplugin is a file, when in fact it's a directory?...

Any suggestions?

dmckenna-gumgum commented 4 years ago

I've also been experiencing this issue and have yet to find a solution that works. It seems to be interpreting the sketch plugin as a directory instead of a file. I've tried multiple LTS node versions with the same results.

html-sketch-app-test $ node -v && npm -v v12.13.1 6.12.1

mgrn0 commented 4 years ago

having the same problem..