You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing prettier...
Prettifying files...
/home/runner/work/_actions/creyD/prettier_action/v4.2/entrypoint.sh: line 74: prettier: command not found
Files:
Problem running prettier with --check **/*.{md,yml}
Error: Process completed with exit code 1.
What should've happened?
Step should succeed or prettier should run at least.
Note
I've did some debugging:
it seems prettier is not found because $PATH is off:
echo PATH=$PATH
PATH=Unknown command: "bin"
To see a list of supported npm commands, run:
npm help:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
running npm help confirm npm bin is not available
npm <command>
Usage:
npm install install all the dependencies in your project
npm install <foo> add the <foo> dependency to your project
npm test run this project's tests
npm run <foo> run the script named <foo>
npm <command> -h quick help on <command>
npm -l display usage info for all commands
npm help <term> search for help on <term>
npm help npm more involved overview
All commands:
access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
hook, init, install, install-ci-test, install-test, link,
ll, login, logout, ls, org, outdated, owner, pack, ping,
pkg, prefix, profile, prune, publish, query, rebuild, repo,
restart, root, run-script, search, set, shrinkwrap, star,
stars, start, stop, team, test, token, uninstall, unpublish,
unstar, update, version, view, whoami
Specify configs in the ini-formatted file:
/home/runner/.npmrc
or on the command line via: npm <command> --key=value
More configuration info: npm help config
Configuration fields: npm help 7 config
npm@9.3.1 /usr/local/lib/node_modules/npm
I've executed prettier with npm exec prettier and it worked, step succeeded. I'm not sure if that's the way. In that case npm install might be unneeded as according to the docs npm exec can fetch packages also. But I'm not too much into Node and npm so I leave this decision for you 😃
The text was updated successfully, but these errors were encountered:
What exactly happened?
Steps to reproduce the behavior:
What should've happened?
Step should succeed or
prettier
should run at least.Note
I've did some debugging:
prettier
is not found because$PATH
is off:npm help
confirmnpm bin
is not availablenpm v9
npm bin
is removed: https://github.blog/changelog/2022-10-24-npm-v9-0-0-released/#%E2%9A%A0%EF%B8%8F-notable-breaking-changesnpm bin
inprettier_action/action.yml
Line 64 in dc62bca
npm v9
Conclusion
I've executed
prettier
withnpm exec prettier
and it worked, step succeeded. I'm not sure if that's the way. In that casenpm install
might be unneeded as according to the docsnpm exec
can fetch packages also. But I'm not too much into Node and npm so I leave this decision for you 😃The text was updated successfully, but these errors were encountered: