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

Can't install with Yarn #80

Open
Rudloff opened this issue Nov 20, 2017 · 0 comments
Open

Can't install with Yarn #80

Rudloff opened this issue Nov 20, 2017 · 0 comments

Comments

@Rudloff
Copy link
Contributor

Rudloff commented Nov 20, 2017

Hello,

Because the postinstall script calls npm explicitely, the hangupsjs package can't be installed with Yarn:

yarn global v1.3.2
[1/4] Resolving packages...
warning hangupsjs > tough-cookie-filestore > [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
⠁ 
⠁ 
⠁ 
⠁ 
error /home/pierre/.config/yarn/global/node_modules/hangupsjs: Command failed.
Exit code: 127
Command: npm run prepublish
Arguments: 

One solution would be to duplicate the command like this:

  "scripts": {
    "postinstall": "coffee -o lib src",
    "test": "mocha",
    "prepublish": "coffee -o lib src"
  },

Or you could use the yarn-or-npm package like this: yon run prepublish.

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

1 participant