imyller / meta-nodejs

OpenEmbedded layer for latest Node.js releases
MIT License
79 stars 87 forks source link

Getting the host node_module/.bin folder #63

Open erakis opened 7 years ago

erakis commented 7 years ago

Hi,

Is there a better way to get the host node_module bin folder than that ?

Ex :

inherit npm npm-install

do_install() {
    NPM_BIN_FOLDER=${S}/node_modules/.bin/
}

Using a hardcoded path is not always the best thing.

I though using this command but it does not work as oe_runnpm_native is written info using bbnote:

NPM_BIN_FOLDER=$(oe_runnpm_native bin)

Best regards,