npm.bblcass dysfunctional in kirkstone
Hello,
with nodejs 16, 'npm.bbclass' stops to work and fails (at least) because of:
1. 'ignore-scripts' has no effect with 'npm pack' anymore. This command will now execute 'prepare' scripts which usually fail.
Patching out 'scripts/prepare' from package.json should solve it (can be done by npm.bbclass).
This problem happens in do_configure()
2. In do_compile(), 'npm install <tarball>' is executed. This tries to contact the registry to fetch the manifest of dependencies. Because offline mode is enforced, it will fail with ENOTCACHED.
E.g.
| npm install md5-2.3.0.tgz | npm sill fetch manifest [email protected] | npm verb stack Error: request to https://registry.npmjs.org/charenc failed: cache mode is 'only-if-cached' but no cached response is available | npm ERR! code ENOTCACHED
This url (https://registry.npmjs.org/charenc) was not added to the npm cache.
Is there any solution or other ways to use npm in kirkstone?
Enrico
Quoted 26 lines · Enrico Scholz via lists.openembedded.org
Hello,
with nodejs 16, 'npm.bbclass' stops to work and fails (at least) because of:
1. 'ignore-scripts' has no effect with 'npm pack' anymore. This command will now execute 'prepare' scripts which usually fail.
Patching out '
scripts/prepare' from package.json should solve it (can be done by npm.bbclass).This problem happens in
do_configure()2. In
do_compile(), 'npm install <tarball>' is executed. This tries to contact the registry to fetch the manifest of dependencies. Because offline mode is enforced, it will fail with ENOTCACHED.E.g.
| npm install md5-2.3.0.tgz | npm sill fetch manifest [email protected] | npm verb stack Error: request to https://registry.npmjs.org/charenc failed: cache mode is 'only-if-cached' but no cached response is available | npm ERR! code ENOTCACHED
Quoted 4 lines
This url (https://registry.npmjs.org/charenc) was not added to the npm cache.
Is there any solution or other ways to use npm in kirkstone?
We're lacking people working on the npm/node support. If people send patches to fix it and add test cases we can look to improve it but this kind of thing doesn't happen without developers working on it and we simply don't have those at the moment :(.
Cheers,
Richard
Quoted 6 lines · [email protected] writes:
Quoted 1 line
Is there any solution or other ways to use npm in kirkstone?
We're lacking people working on the npm/node support. If people send patches to fix it and add test cases we can look to improve it but this kind of thing doesn't happen without developers working on it and we simply don't have those at the moment :(.
ok; I am on it and I got it to work. But I have to cleanup things first before I can submit the changes.
Enrico