Hi all, following with my work with yocto npm I got a new error.
I have declared in the recipe
SRC_URI = " \
git://github.com/SiliconLabs/gateway-management-ui.git;protocol=git \
npmsw://${THISDIR}/${PN}/npm-shrinkwrap.json \
"
And npm-shrinkwrap.json starts with :
{
"name": "gateway_react_ui",
"version": "2.5.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"JSONStream": {
"version": "1.3.5",
"resolved":
"https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz",
"integrity":
"sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==",
"dev": true,
"requires": {
"jsonparse": "^1.2.0",
"through": ">=2.2.7 <3"
}
},
"accepts": {
"version": "1.3.7",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
"integrity":
"sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
"dev": true,
"requires": {
"mime-types": "~2.1.24",
"negotiator": "0.6.2"
}
},
"accord": {
"version": "0.29.0",
"resolved": "https://registry.npmjs.org/accord/-/accord-0.29.0.tgz",
"integrity":
"sha512-3OOR92FTc2p5/EcOzPcXp+Cbo+3C15nV9RXHlOUBCBpHhcB+0frbSNR9ehED/o7sTcyGVtqGJpguToEdlXhD0w==",
"dev": true,
"requires": {
"convert-source-map": "^1.5.0",
"glob": "^7.0.5",
"indx": "^0.2.3",
"lodash.clone": "^4.3.2",
"lodash.defaults": "^4.0.1",
"lodash.flatten": "^4.2.0",
"lodash.merge": "^4.4.0",
"lodash.partialright": "^4.1.4",
"lodash.pick": "^4.2.1",
"lodash.uniq": "^4.3.0",
"resolve": "^1.5.0",
"semver": "^5.3.0",
"uglify-js": "^2.8.22",
"when": "^3.7.8"
},
It seems that JSONStream dependency downloading step is ignored silently in
do_fetch task so I get this error in do_configure task because it doesn't find
the files:
npm ERR! code ENOLOCAL
npm ERR! Could not install from
"../../home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/git/reactui/node_modules/JSONStream"
as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR!
/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/npm-cache/_logs/2020-08-21T19_06_36_633Z-debug.log
ERROR: Logfile of failure stored in:
/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/temp/log.do_configure.6983
ERROR: Task
(/home/bob/develop/yocto/meta-niko/recipes-miscellaneous/zigbee/zigbee-ui-reactui.bb:do_configure)
failed with exit code '1'
I attach the log:
$ cat
/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/npm-cache/_logs/2020-08-21T19_06_36_633Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli
'/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/recipe-sysroot-native/usr/bin/node',
1 verbose cli
'/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/recipe-sysroot-native/usr/bin/npm',
1 verbose cli 'pack',
1 verbose cli
'/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/git/reactui/node_modules/JSONStream'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 8672504930c3cab4
5 silly fetchPackageMetaData error for
/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/git/reactui/node_modules/JSONStream
Could not install from
"../../home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/git/reactui/node_modules/JSONStream"
as it does not contain a package.json file.
6 verbose stack Error: ENOENT: no such file or directory, open
'/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/git/reactui/node_modules/JSONStream/package.json'
7 verbose cwd /tmp/tmptuei7c_m
8 verbose Linux 5.4.0-42-generic
9 verbose argv
"/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/recipe-sysroot-native/usr/bin/node"
"/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/recipe-sysroot-native/usr/bin/npm"
"pack"
"/home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/git/reactui/node_modules/JSONStream"
10 verbose node v12.14.1
11 verbose npm v6.13.4
12 error code ENOLOCAL
13 error Could not install from
"../../home/bob/develop/yocto/build/tmp/work/armv7ahf-neon-poky-linux-gnueabi/zigbee-ui-reactui/2.5.0-r0/git/reactui/node_modules/JSONStream"
as it does not contain a package.json file.
14 verbose exit [ 1, true ]
Regards
Jose
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50321): https://lists.yoctoproject.org/g/yocto/message/50321
Mute This Topic: https://lists.yoctoproject.org/mt/76335911/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-