asciidoctor / asciidoctor-kroki

Asciidoctor.js extension to convert diagrams to images using Kroki!
https://kroki.io/
MIT License
151 stars 51 forks source link

'npm run lint' failed @ windows #67

Closed anb0s closed 4 years ago

anb0s commented 4 years ago

I've tried the Contributing description @ Windows 10 with fresh clone and versions:

npm i --> Works npm run lint returns error:

> asciidoctor-kroki@0.8.2 lint C:\Users\user\dev\asciidoctor-kroki
> standard src/**.js test/**.js

Der Befehl "standard" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! asciidoctor-kroki@0.8.2 lint: `standard src/**.js test/**.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the asciidoctor-kroki@0.8.2 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

The german text saysthe command "standard" is wrong or cannot be found.

anb0s commented 4 years ago

After npm i standard now it runs without error:

$ npm run lint

> asciidoctor-kroki@0.8.2 lint C:\Users\user\dev\asciidoctor-kroki
> standard src/**.js test/**.js
anb0s commented 4 years ago

The devDependencieshave already "standard": "^14.3.3" and it should work ! It looks like again something different happenes @ windows...

ggrossetie commented 4 years ago

The command is npm i not npm -i. You can also use the long form npm install. Not sure if it's a typo or not but that can explain why the dependencies were not installed.

anb0s commented 4 years ago

I've started with fresh repo git clean -dfx and now it looks good :)

anb0s commented 4 years ago

@Mogztter thx, it was a typo i use npm i or npm install

Now it just works :)