nxhack / openwrt-node-packages

OpenWrt Project Node.js packages. v18.x TLS and v20.x LTS
GNU General Public License v2.0
252 stars 98 forks source link

node development problems #2020

Closed esaaprillia closed 3 weeks ago

esaaprillia commented 3 weeks ago

@nxhack

i did a test build of node-update-browserslist-db

i get an error

find /home/runner/work/mosdns/mosdns/sdk/build_dir/target-aarch64_generic_musl/node-update-browserslist-db-1.0.16/node_modules -type d -empty -print0 | xargs -0 rmdir || true
rmdir: missing operand
Try 'rmdir --help' for more information.
cp: cannot stat '/home/runner/work/mosdns/mosdns/sdk/build_dir/target-aarch64_generic_musl/node-update-browserslist-db-1.0.16/node_modules': No such file or directory

i see node_modules is in PKG_BUILD_DIR

to fix this I added -r

find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 -r rmdir || true

https://stackoverflow.com/questions/36617999/error-rm-missing-operand-when-using-along-with-find-command/36618260#36618260

nxhack commented 3 weeks ago

Thank you! fixed.