Skip to content

Unable to find npm CLI install directory #305

@pandektes-braedon

Description

I encountered this issue immediately after installing socket for the first time:

→ socket npm i
Unable to find npm CLI install directory.
Searched parent directories of /Users/braedon/.asdf/plugins/nodejs/shims/npm.

This is may be a bug with socket-npm related to changes to the npm CLI.
Please report to https://github.com/SocketDev/socket-cli/issues.

Not sure if it has anything to do with it being shimmed via asdf. I can confirm that I can successfully run npm via the above directory:

→ /Users/braedon/.asdf/plugins/nodejs/shims/npm
npm <command>

Usage:

npm install        install all the dependencies in your project
npm install <foo>  add the <foo> dependency to your project
npm test           run this project's tests
...

Current version:

→ socket --version
0.14.40

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions