npm-link-up icon indicating copy to clipboard operation
npm-link-up copied to clipboard

If two or more package.json names exist, need to mitigate

Open ORESoftware opened this issue 7 years ago • 4 comments

For example, @oresoftware/shell exists at two different places on the ubuntu machine.

so which one to choose?

ORESoftware avatar Jun 24 '18 06:06 ORESoftware

for package.json files where we want them to be linkable, then require users to put a property called:

nluLinkable:true

in package.json.

If a package has that property, then that one will be selected.

ORESoftware avatar Jun 24 '18 06:06 ORESoftware

the problem was '@oresoftware/shell' - more than one package.json is on the fs...

ORESoftware avatar Jun 24 '18 06:06 ORESoftware

[docker.r2g error] unexpected error: The following requested package name exists in more than 1 location on disk, and docker.r2g does not know which one to use ... { name: '@oresoftware/shell',
  locations:
   [ '/home/oleg/WebstormProjects/oresoftware/shell/assets/package.json',
     '/home/oleg/WebstormProjects/oresoftware/shell/package.json' ] }

/home/oleg/WebstormProjects/oresoftware/docker.r2g/dist/commands/exec/run.js:131
            throw clean_trace_1.getCleanTrace(err);

ORESoftware avatar Jun 24 '18 07:06 ORESoftware

for packages we do not want load, have users do:

"nlu": {
 "linkable": false
}

ORESoftware avatar Jun 27 '18 23:06 ORESoftware