imyller / bitbake-npm Goto Github PK
View Code? Open in Web Editor NEWOpenEmbedded layer with Bitbake fetch support for Node.js NPM repositories
License: MIT License
OpenEmbedded layer with Bitbake fetch support for Node.js NPM repositories
License: MIT License
Hi. Thanks so much for this library. It is exactly what I needed. I just want to know if it is possible to have something like this:
SRC_URI = "npm://i2c-bus"
npm://bindings
"
I tried this but it seems that the last package (bindings in this case) will be the only one in: ${S}
Deleting the previous one (i2c-bus)
so when we do:
cp -rp ${S}/* ${D}${libdir}/node_modules/
it has only bindings library content.
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.
Hi imyller,
I would like to install coffeescript in my image.
I use an specific BSP :
https://git.congatec.com/yocto/bsp-scripts
Build Configuration:
BB_VERSION = "1.26.0"
BUILD_SYS = "i686-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "cgtqmx6"
DISTRO = "poky"
DISTRO_VERSION = "1.8"
TUNE_FEATURES = "arm armv7a vfp neon callconvention-hard cortexa9"
TARGET_FPU = "vfp-neon"
meta
meta-yocto = "(detachedfrom1.8):7209c0bb135e0b91f177c2542b7b27a0aa424f54"
meta-oe
meta-networking
meta-multimedia
meta-filesystems
meta-python = "(detachedfrom1.8):2080f15e86d3d8e1e1f65e16b014545fe538114c"
meta-fsl-arm = "(detachedfrom1.8):68752031fc843bfba48ee3edbb439b11d2198597"
meta-fsl-arm-extra = "fido:2eca92f9785a7b0f1115a3d34b7a6072b89c545e"
meta-openstack = "master:89f228ce884f8f73db4fd1580adf87187b27bb2f"
meta-mooltibox = "fido:38fcb4fdebb60431d5b8f06b2206b05a45919665"
bitbake-npm = "master:40d0ef1cb9a664b6177f907908bb589e7047b21d"
And my recipe of cofffescript is :
***/recipes-devtools/nodejs/nodejs-coffee-script_1.9.3.bb
/*************/
SUMMARY = " Unfancy JavaScript http://coffeescript.org/"
SRC_URI = "npm://coffee-script"
inherit npm-fetch
/***********/
When I build it, I have some error :
WARNING: Failed to fetch URL npm://coffee-script, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 1, output:
npm WARN using --force I sure hope you know what you are doing.
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN locking Error: EACCES, open '/home/ljoli/.npm/_locks/coffee-script-9ae105e36c3314f5.lock'
npm WARN locking at Error (native)
npm WARN locking /home/ljoli/.npm/_locks/coffee-script-9ae105e36c3314f5.lock failed { [Error: EACCES, open '/home/ljoli/.npm/_locks/coffee-script-9ae105e36c3314f5.lock']
npm WARN locking errno: -13,
npm WARN locking code: 'EACCES',
npm WARN locking path: '/home/ljoli/.npm/_locks/coffee-script-9ae105e36c3314f5.lock' }
npm ERR! Linux 3.13.0-58-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "--arch=arm" "--target_arch=arm" "install" "coffee-script" "--force"
npm ERR! node v0.12.3
npm ERR! npm v2.9.1
npm ERR! Attempt to unlock /media/ljoli/disk_one/compile_fido/downloads/npm/coffee-script/node_modules/coffee-script, which hasn't been locked
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /media/ljoli/disk_one/compile_fido/downloads/npm/coffee-script/npm-debug.log
ERROR: Function failed: Fetcher failure for URL: 'npm://coffee-script'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /media/ljoli/disk_one/compile_fido/build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/nodejs-coffee-script/1.9.3-r0/temp/log.do_fetch.10381
ERROR: Task 4 (/media/ljoli/disk_one/compile_fido/sources/meta-mooltibox/recipes-devtools/nodejs/nodejs-coffee-script_1.9.3.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 366 tasks of which 365 didn't need to be rerun and 1 failed.
Have you some ideas on my errors ?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.