Skip to content

lighthouse binaries not in $PATH after installation #1579

@dandv

Description

@dandv

Do you want to request a feature or report a bug?

Bug/incompatibility with npm. Possibly related to #630.

What is the current behavior?

~ sudo yarn global add lighthouse
[sudo] password for dandv: 
yarn global v0.16.1
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed [email protected] with binaries:
      - lighthouse
      - chrome-debug
Done in 0.93s.
➜  ~ lighthouse
zsh: command not found: lighthouse

What is the expected behavior?

npm installs the binaries correctly:

~ sudo npm install -g lighthouse
[sudo] password for dandv: 
/usr/bin/lighthouse -> /usr/lib/node_modules/lighthouse/lighthouse-cli/index.js
/usr/bin/chrome-debug -> /usr/lib/node_modules/lighthouse/lighthouse-core/scripts/launch-chrome.sh
/usr/lib
└─┬ [email protected] 
  ├── [email protected] 
  ├── [email protected] 

  [...]

    ├─┬ [email protected] 
    │ └─┬ [email protected] 
    │   └── [email protected] 
    ├── [email protected] 
    └── [email protected]~ lighthouse
Please provide a url

Specify --help for available options

Please mention your node.js, yarn and operating system version.

Node v6.9.1, yarn 0.16.1, Ubuntu 16.04.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions