-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unpack will fail if there is anywhere in the parent path of bitbake a node_modules folder #3
Comments
Thank you for reporting this issue. I can not duplicate it in my setup, so could you please provide some log outputs? To my knowledge npm should always prefer the current directory it is run from as a target for |
I removed some exports at the Running output. Basically export of ssh auth sock, proxies, home path and path variable. log.do_fetch: log.do_unpack: |
I did no special settings or so. :( for bcryptjs I used this recipe stuff: bcryptjs_2.1.0.bbSUMMARY = "Optimized bcrypt in plain JavaScript with zero dependencies. Compatible to 'bcrypt'." PR = "r0" require node.inc node.incNODEVERSION ?= "${PV}" inherit npm-install npm-fetch do_install() { FILES_${PN} += "${libdir}/node_modules" |
Thanks for the details. Looks like Other explanation is that |
when I create an empty node_modules folder in my home before running bitbake, the bcryptjs stuff goes into this folder when running bitbake bcryptjs -c fetch .... so I guess npm is not correct. |
Just checked npm folder docs at https://docs.npmjs.com/files/folders It says that all local install should go to Have to look at the |
What is the npm version you are using |
nodejs-native was built, so I guess the bitbake's npm is used which has the version 1.4.28. Can I somehow figure out which npm bitbake-npm is using? |
I'll have to add some debug logging for npm install phase. Just testing various configurations myself. Any reason why you are not running more recent node/npm? See https://github.com/imyller/meta-nodejs for recipe layer with latest node.js releases or https://github.com/imyller/meta-iojs for io.js. |
yeah ... v8 c++ gets much more complex then :) |
Use |
thanks for the hint .... will have a look :) |
Can you please test with changes made in |
Sorry for the delay! Fetch is working now. Thanks for fixing it! |
Good to hear. Thank you for reporting and testing. I'm closing this issue as resolved. |
Guess bitbake is install under /home/user/Projects/bitbake and /home/user/node_modules is existing.
npm-fetch will download the module to /home/user/node_modules rather than to sources/downloads/npm/.....
The download will succeed but the unpack will fail then, as the folder below sources/downloads/npm/... is empty.
The text was updated successfully, but these errors were encountered: