Coder Social home page Coder Social logo

npm-bug-git-with-local-dependency's Introduction

Environment

$ npm -v
6.14.8
$ node -v
v10.23.0

How to reproduce the bug

Install a package that has file dependency (e.g. this one) as git dependency.

$ npm i 'git+ssh://[email protected]:KonanMentor/npm-package-with-local-dependency.git#633bf9d3451f48de1f6f6d10ecb9a759a483ac4e'

Actual result

Installation fails with

npm ERR! code ENOLOCAL
npm ERR! Could not install from "/home/user/npm-bug-git-with-local-dependency, /home/user/npm-bug-git-with-local-dependency/node_modules/npm-package-with-local-dependency/local-dependency" as it does not contain a package.json file.

Expected result

npm sucessfully installs npm-package-with-local-dependency as git dependency and links local-dependency dependency.

loglevel=silly logs

$ npm i --loglevel=silly 'git+ssh://[email protected]:KonanMentor/npm-package-with-local-dependency.git#633bf9d3451f48de1f6f6d10ecb9a759a483ac4e'
npm info it worked if it ends with ok
npm verb cli [ '/home/user/.nvm/versions/node/v10.23.0/bin/node',
npm verb cli   '/home/user/.nvm/versions/node/v10.23.0/bin/npm',
npm verb cli   'i',
npm verb cli   '--loglevel=silly',
npm verb cli   'git+ssh://[email protected]:KonanMentor/npm-package-with-local-dependency.git#633bf9d3451f48de1f6f6d10ecb9a759a483ac4e' ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session 2e5bb4758c3903a8
npm sill install loadCurrentTree
npm sill install readLocalPackageData
npm sill pacote git manifest for undefined@git+ssh://[email protected]/KonanMentor/npm-package-with-local-dependency.git#633bf9d3451f48de1f6f6d10ecb9a759a483ac4e fetched in 2224ms
npm timing stage:loadCurrentTree Completed in 2263ms
npm sill install loadIdealTree
npm sill install cloneCurrentTreeToIdealTree
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
npm sill install loadShrinkwrap
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
npm sill install loadAllDepsIntoIdealTree
npm sill resolveWithNewModule [email protected] checking installable status
npm sill fetchPackageMetaData error for local-dependency@file:local-dependency Could not install from "/home/user/npm-bug-git-with-local-dependency, /home/user/npm-bug-git-with-local-dependency/node_modules/npm-package-with-local-dependency/local-dependency" as it does not contain a package.json file.
npm timing stage:rollbackFailedOptional Completed in 1ms
npm timing stage:runTopLevelLifecycles Completed in 2279ms
npm sill saveTree [email protected]
npm sill saveTree └── [email protected]
npm verb stack Error: ENOENT: no such file or directory, open '/home/user/npm-bug-git-with-local-dependency/node_modules/npm-package-with-local-dependency/local-dependency/package.json'
npm verb cwd /home/user/npm-bug-git-with-local-dependency
npm verb Linux 5.6.0-1-amd64
npm verb argv "/home/user/.nvm/versions/node/v10.23.0/bin/node" "/home/user/.nvm/versions/node/v10.23.0/bin/npm" "i" "--loglevel=silly" "git+ssh://[email protected]:KonanMentor/npm-package-with-local-dependency.git#633bf9d3451f48de1f6f6d10ecb9a759a483ac4e"
npm verb node v10.23.0
npm verb npm  v6.14.8
npm ERR! code ENOLOCAL
npm ERR! Could not install from "/home/user/npm-bug-git-with-local-dependency, /home/user/npm-bug-git-with-local-dependency/node_modules/npm-package-with-local-dependency/local-dependency" as it does not contain a package.json file.
npm verb exit [ 1, true ]
npm timing npm Completed in 2635ms

npm-bug-git-with-local-dependency's People

Contributors

konanmentor avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.