1

I recently started learning Vaadin, I installed the Vaadin Designer plugin in IntelliJ IDEA. When I open JS files I'm getting an error like below:

enter image description here

I'm using nvm for installing node js in my mac. What are the things that I required to configure to get rid of this error?

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61
Chaitanya
  • 73
  • 1
  • 9
  • Make sure `node` binary is visible to the GUI apps, not just Terminal apps, see https://stackoverflow.com/a/26586170/104891. – CrazyCoder Nov 20 '19 at 19:22
  • I tried everything above, including the environment.plist, but still get the same error. On a terminal, 'which node' shows where my node is located. Does someone have clear instructions on how to make it work? To the Vaadin team: as Vaadin now downloads node in ~/.vaadin, could it actually use that copy instead? – Philippe Riand Nov 16 '21 at 14:56
  • FYI, I finally fixed it using: sudo launchctl config user path $HOME/.nvm/current/bin:$PATH – Philippe Riand Dec 03 '21 at 01:46

1 Answers1

0

Add export NVM_SYMLINK_CURRENT=true to your .bashrc before NVM-stuff. Then do nvm use default - symlink is created. Then add $HOME/.nvm/current/bin to your PATH in .profile.

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61