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

yarn 1.22.19 failed to install on FreeBSD because preinstall script error #8866

Open
Brooooooklyn opened this issue Aug 12, 2022 · 3 comments

Comments

@Brooooooklyn
Copy link

Brooooooklyn commented Aug 12, 2022

https://github.com/napi-rs/package-template/runs/7800600278?check_suite_focus=true

  npm ERR! code 127
  npm ERR! path /usr/local/lib/node_modules/yarn
  npm ERR! command failed
  npm ERR! command sh -c -- :; (node ./preinstall.js > /dev/null 2>&1 || true)
  npm ERR! :; (node ./preinstall.js > /dev/null 2>&1 || true): --: not found
@Brooooooklyn
Copy link
Author

Only occurs with npm@8.17.0

@derekschrock
Copy link

Looks like the same thing here.

npm/run-script#103
npm/cli#5297

Working around is to install bash and npm config set script-shell bash

@derekschrock
Copy link

I think has a hack you could put -- in ~/bin/-- chmod +x ~/bin/-- and put ~/bin/ in PATH

pan93412 added a commit to UnblockNeteaseMusic/server-rust that referenced this issue Aug 26, 2022
pan93412 added a commit to UnblockNeteaseMusic/server-rust that referenced this issue Aug 29, 2022
pan93412 added a commit to UnblockNeteaseMusic/server-rust that referenced this issue Aug 29, 2022
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