Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm install --save with a git dependency saves a relative path to tmp/ #7121

Closed
@aearly

Description

aearly@alpha:~/projects/some-project
$ npm --version
2.2.0

aearly@alpha:~/projects/some-project
$ npm i git://github.com/aearly/somemodule --save
[email protected] node_modules/somemodule

aearly@alpha:~/projects/some-project
$ grep somemodule package.json 
    "somemodule": "file:../../../../tmp/npm-10362-85236a5e/1421102722335-0.624850605847314/b1567b5b2223729d0a4fe3d82513241e6e1035df",

Prior to NPM 2.0, this would have saved as:

    "somemodule": "git://github.com/aearly/somemodule",

It works as expected if I use the aearly/somemodule shorthand.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions