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

Error message when installing a module that's currently a dangling symlink could be improved #9425

Open
aredridel opened this issue Aug 27, 2015 · 2 comments

Comments

@aredridel
Copy link
Contributor

Currently, my node_modules/hapi-stateless-notifications is a dangling
symlink. When I tried to install the module:

:; npm i --save hapi-stateless-notifications
npm ERR! Darwin 15.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "i" "--save" "hapi-stateless-notifications"
npm ERR! node v0.12.7
npm ERR! npm  v3.3.0
npm ERR! path /Users/aredridel/Projects/npm/newww/node_modules/hapi-stateless-notifications
npm ERR! code ENOENT
npm ERR! errno -2

npm ERR! enoent ENOENT, stat '/Users/aredridel/Projects/npm/newww/node_modules/hapi-stateless-notifications'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/aredridel/Projects/npm/newww/npm-debug.log

I think this could be detected and warned specifically -- or dangling symlinks
treated as non-existent and removed.

@othiym23 othiym23 added this to the 3.x milestone Aug 28, 2015
@othiym23
Copy link
Contributor

I think you're right! Can this wait until after npm@3 hits general release?

@reznord
Copy link

reznord commented Sep 7, 2017

Unable to reproduce anymore in the latest version.

@zkat you can close this issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants