html-sketchapp-cli icon indicating copy to clipboard operation
html-sketchapp-cli copied to clipboard

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

Open matt-bailey opened this issue 5 years ago • 2 comments

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

> [email protected] 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! [email protected] html-sketchapp-install: `html-sketchapp install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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?

matt-bailey avatar Nov 18 '19 16:11 matt-bailey

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

dmckenna-gumgum avatar Dec 02 '19 23:12 dmckenna-gumgum

having the same problem..

mgrn0 avatar Mar 26 '20 15:03 mgrn0