Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Creation of unwanted ./etc directory #74

Open
cvrebert opened this issue Apr 26, 2015 · 5 comments
Open

Creation of unwanted ./etc directory #74

cvrebert opened this issue Apr 26, 2015 · 5 comments
Labels

Comments

@cvrebert
Copy link
Contributor

Running v200.4.0 of npm-shrinkwrap results in the creation of an empty etc subdirectory of the current directory, which is mildly annoying:

$ ls -1 | grep etc
$ # No etc subdirectory
$ ./node_modules/.bin/npm-shrinkwrap
wrote npm-shrinkwrap.json
$ ls -1 | grep etc
etc
$

Here's my npm-shrinkwrap portion of npm ls: https://gist.github.com/cvrebert/ba4525d1d790d01acca5

Some searching and experimenting suggests that this upstream change in npm is to blame:
npm/npm@6fd0fbd (from npm/npm#7249)

However, I haven't dug deep enough to know which side (or both) of npm vs npm-shrinkwrap needs fixing to address this problem.

@cvrebert cvrebert added the bug label Apr 26, 2015
@Raynos
Copy link
Contributor

Raynos commented Apr 26, 2015

Something to do with the prefix semantics.

@BaoDelta
Copy link

@Raynos Hi, do you have any update for this issue? The 'etc' directory seems a little bit annoying. Thanks.

@Raynos
Copy link
Contributor

Raynos commented Nov 25, 2015

It's an artifact of npm itself. I'd have to check if npm ever fixed this

@XhmikosR
Copy link

It still happens with npm 3.3.12 here.

@Linnk
Copy link

Linnk commented Jul 29, 2016

[email protected] — this keep happening.

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

No branches or pull requests

5 participants