node.js - npm dedupe/install resulting behaviour different between linux and windows, why? -


i posted, question on npm github repository wondering if else encountered well. (https://github.com/npm/npm/issues/17970)

so have 2 environments, 1 linux , 1 windows, performing npm dedupe on same file structure, nested modules(nested modules easier search stuff manually). file structure has presence of 2 .bin files within them. when perform npm dedupe in windows expected behaviour happens .bin folders , contents moved top level accordingly. however in linux behaviour radically different these hidden folders. when calling npm dedupe, new .bin file created containing links point directly nested module below. ~~while original .bin folder never moves , still nested.~~ while original bin folder renamed bin. quite don't understand, why there separate behaviour between these two.

to reproduce this, easiest way run npm install bunyan npm version 3+ (npm flattens on install on version 3 or higher). in linux under node_modules of installed, there .bin folder 4 links plain text documents pointing nested dependencies. ~~while in windows .bin folder contain 8 expected files, cmd , shell scripts included.~~ (this no longer true error on part, why links in linux still exist?)

regards, know not bug. explain me behaviour , reasoning behind this?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -