Skip to content

Add from github source, in a specific subfolder #4765

@Ploppz

Description

@Ploppz

I want to add a dependency from github, but the source code for the package is only in a subfolder javascript/node/selenium-webdriver in that git repo.

$ pnpm add https://github.com/SeleniumHQ/selenium/tree/trunk/javascript/node/selenium-webdriver
 WARN  GET https://github.com/SeleniumHQ/selenium/tree/trunk/javascript/node/selenium-webdriver error (undefined). Will retry in 10 seconds. 2 retries left.
 ERR_PNPM_MISSING_PACKAGE_NAME  Can't install SeleniumHQ/selenium: Missing package name
Progress: resolved 43, reused 43, downloaded 0, added 0

I guess the reason for this error is that the root package.json does not have a "name" key, and that makes me think this is simply a feature that pnpm does not yet implement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    in progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions