2

I am having problems installing an npm package that has a file dependency off of github. When installing directly from a local package there are no problems.

The package that I am trying to install has a dependency on a package defined within on of its subdirectories.

The error I am getting is as follows:

npm ERR! code ENOLOCAL

npm ERR! Could not install from "node_modules/local-dependency-example/local-dependency" as it does not contain a package.json file.

I created the following package in order to reproduce: https://github.com/eladzlot/local-dependency-example

In order to reproduce you should create an empty package: npm init. Then attempt to install: npm install eladzlot/local-dependency-example --save.

This problem occurs both with npm v3.10.10 and npm v5.5.1

Community
  • 1
  • 1
Elad
  • 530
  • 1
  • 7
  • 22

0 Answers0