Installing nodejs as a build-snaps in a python but nodejs not found in path

I have a python app which has some javascript component which require nodejs and npm to compile. As I am using python plugin I am and nodejs version required to be > 14 I am using following setup

plugin: python
   source: .
   python-requirements:
     - requirements.txt
     - requirements-dev.txt
   python-packages:   
     - fonttools
     - PyQt6
   stage-packages:
     - libgl1
     - libegl1
     - libxcb-cursor0   
     - libxcb1
     - libxcb-render0
     - libxcb-shm0
     - libxcb-randr0
     - libxcb-xfixes0
     - libxkbcommon0
     - libqt6gui6       
     - libqt6core6       
     - libqt6widgets6     
     - libstdc++6      
   build-snaps:
     -  nodejs --channel=16/stable  

This however gives following error

PATH=/snap/bin:/root/parts/fontrapak/install/bin:/root/parts/fontrapak/install/usr/bin:/snap/snapcraft/14167/libexec/snapcraft:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
:: + node -v
:: /tmp/tmpz_u1h3kk/scriptlet.sh: line 9: node: command not found

Now how to find the path of installed snap nodejs?

nodejs is not a snap:

snap install nodejs --channel 16/stable
error: snap "nodejs" not found

It seems like the bug is that snapcraft silently does nothing when the snap doesn’t exist. We have an upstream bug for this: Silent failure on certain store issues · Issue #751 · canonical/craft-parts · GitHub