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?