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

Partially hot: not able to use it in github workflows #31

Closed
aborruso opened this issue Feb 24, 2021 · 1 comment
Closed

Partially hot: not able to use it in github workflows #31

aborruso opened this issue Feb 24, 2021 · 1 comment

Comments

@aborruso
Copy link

Hi,
I have this very basic script

folder="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

mkdir -p "$folder"/rawdata
mkdir -p "$folder"/processing

npm list -g --depth=0

rm "$folder"/rawdata/"$reg".png
capture-website --delay 5 --full-page --width 1280 --height  720 --output  "$folder"/rawdata/"$reg".png "https://ondata.github.io/vaccinipertutti/?area=SIC"

I run it using this github workflow (it's Ubuntu 20.04.2 LTS), in which I set capture-website-cli installation in this way

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
NPM_CONFIG_PREFIX=~/.npm-global
npm install -g capture-website

But when the script runs I have this error:

./test.sh: line 13: capture-website: command not found

It seems that it has been not installed in ~/.npm-global.
If I run find /home/runner -executable -name capture-website I have

/home/runner/.npm-global/lib/node_modules/capture-website

Do you have some advice to solve my problem?

Thank you

@sindresorhus
Copy link
Owner

I would try asking in https://github.community/c/software-development/47 Your question is about npm, not specifically this package.

@aborruso aborruso changed the title Partially hot: tot able to use it in github workflows Partially hot: not able to use it in github workflows Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants