-
Hi I am getting this error after trying to publish with your plugin: " In plugin 'dev.petuska.npm.publish' type 'dev.petuska.npm.publish.task.NpmPublishTask' property 'node' specifies file '/Users/nickik/.gradle/nodejs/node-v22.0.0-darwin-arm64/bin/node' which doesn't exist." Here is my gradle file:
I can't tell what I am doing wrong because to me it would seem I need another plugin to get node showing up in my user .gradle folder but I have checked all your samples and I don't see you using one. I do have node installed on my machine, just not located under the .gradle user file. If you can please let me know what you see that is wrong, that would be great! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
symlinking my local node setup gets me past this and publishing successfully but I am confused on why I had to do that |
Beta Was this translation helpful? Give feedback.
-
I get the same build error though when I try to build with my CI/CD instance, is there some kind of set up needed here to make sure node is in the .gradle file that I missed in the docs? |
Beta Was this translation helpful? Give feedback.
-
What kotlin version are you using? Seems like kotlin 2+ has changed where node is stored and plugin can no longer detect it. You do have better options than symlinking though: https://npm-publish.petuska.dev/latest/user-guide/configuration/extension/#nodehome |
Beta Was this translation helpful? Give feedback.
What kotlin version are you using? Seems like kotlin 2+ has changed where node is stored and plugin can no longer detect it. You do have better options than symlinking though: https://npm-publish.petuska.dev/latest/user-guide/configuration/extension/#nodehome