npm-link-up
npm-link-up copied to clipboard
If two or more package.json names exist, need to mitigate
For example, @oresoftware/shell exists at two different places on the ubuntu machine.
so which one to choose?
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.
the problem was '@oresoftware/shell' - more than one package.json is on the fs...
[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);
for packages we do not want load, have users do:
"nlu": {
"linkable": false
}