https://pulumi.com logo
w

worried-queen-62794

06/21/2023, 7:17 PM
I’m having an issue where I keep getting:
Detected multiple versions of ‘@pulumi/pulumi’ in use in an inline automation api program.
I think it might be because I am using npm link with a pulumi library that I am developing. Is there a way to get this to work?
b

billowy-army-68599

06/21/2023, 7:22 PM
i just ran into this, if you look in your
node_modules
you likely have a nested version in there because of the npm linkl
w

worried-queen-62794

06/21/2023, 9:24 PM
So it is going to have to be a
peerDependency
but that unfortunately doesn’t solve the problem when it is linked. Even when using workspaces and my linked package doesn’t even have a
node_modules
directory within it (it is in the root). I’m guessing the resolution is walking up from the linked location and still finding it.