Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Not working on fresh install for LTS node #5

Open
Triloworld opened this issue Nov 17, 2021 · 1 comment
Open

bug: Not working on fresh install for LTS node #5

Triloworld opened this issue Nov 17, 2021 · 1 comment

Comments

@Triloworld
Copy link

Just error. Is the only one extension on this planet for VSC to lint smarty templates used in Prestashop.
Installed as required in doc. No from where error come from

Node:

v16.11.1

NPM:

8.0.0

> Executing task in folder ... : npm run lint <


> [email protected] lint
> smarty-lint

/Volumes/.../node_modules/.bin/smarty-lint: line 1: /Applications: is a directory
/Volumes/.../node_modules/.bin/smarty-lint: line 3: syntax error near unexpected token `('
/Volumes/.../node_modules/.bin/smarty-lint: line 3: `const fs = require('fs');'
The terminal process "/bin/bash '-c', 'npm run lint'" terminated with exit code: 2.

Terminal will be reused by tasks, press any key to close it.
@Triloworld
Copy link
Author

Right now work fix:

"lint": "node node_modules/@modix/smarty-lint/cli.js",

But require to change smartylint.json if just one file we check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant