SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.02k stars 1.23k forks source link

node - 'npx: command not found' even after global install #4002

Closed StrikeAgainst closed 4 years ago

StrikeAgainst commented 4 years ago

Setup

Package Name: Node.js v8 Package Version: 8.9.4-0005

NAS Model: DS218play NAS Architecture: rtd1296 (armv8) DSM version: 6.2.3-25426

Expected behavior

After installing npx via npm i -g npx, I expected it to run globally...

Actual behavior

...running a command with npx, simply gives me the error output npx: command not found though. I can run npx by path, which is very cumbersome though: /volume1/@appstore/Node.js_v8/usr/local/bin/npx. Any way to get this running as a global executable?

Steps to reproduce

1. Install Node.js v8 via DSM 2. Run npm i -g npx via SSH 3. Run any command requiring npx, in my case npx webpack

ymartin59 commented 4 years ago

As Node.js is a package from Synology and not from SynoCommunity, here is not the right place to complain about it. You should go to https://forum.synology.com/