Skip to content

Global package bins don't work on Node.js v10.3.0  #80

@rstacruz

Description

@rstacruz

When running bins from global packages in the latest Node.js version, you get the error:

No such command in 10.3.0 of nodejs

Steps to replicate

# Use the latest node.js
asdf install nodejs 10.3.0
asdf global nodejs 10.3.0

# Install a package
npm install -g gh

# Generate shims
asdf reshim nodejs

# Try to run it
gh
# No such command in 10.3.0 of nodejs

Workaround

The shims are made as .npm/bin/xxx, but are now in bin/xxx. To remedy this, you can make .npm/bin available again:

ln -nfs ../bin ~/.asdf/installs/nodejs/10.3.0/.npm/bin

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