npm2nix icon indicating copy to clipboard operation
npm2nix copied to clipboard

Relative file paths in package.json are treated as github URLs

Open larf311 opened this issue 9 years ago • 2 comments

Using node 0.12.0.

When you have a dependency list like the following:

"dependencies": {
  "mymodule": "./node_modules/mymodule",
  "jquery": "~1.11.1",
},

You get an error like this:

Error during fetch: Error fetching git://github.com/./node_modules/mymodule from git: Error executing git clone: Error: spawn git ENOENT

Have also tried with the following:

"dependencies": {
  "mymodule": "file:./node_modules/mymodule",
  "jquery": "~1.11.1",
},

larf311 avatar Apr 21 '15 14:04 larf311