Re: [OE-core] npm.bblcass dysfunctional in kirkstone
richard.pur...@linuxfoundation.org writes: >>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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#165862): https://lists.openembedded.org/g/openembedded-core/message/165862 Mute This Topic: https://lists.openembedded.org/mt/91183010/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] npm.bblcass dysfunctional in kirkstone
On Wed, 2022-05-18 at 12:14 +0200, Enrico Scholz via lists.openembedded.org wrote: > 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 ' 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 charenc@0.0.2 >| 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? 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#165797): https://lists.openembedded.org/g/openembedded-core/message/165797 Mute This Topic: https://lists.openembedded.org/mt/91183010/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[OE-core] 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 ' 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 charenc@0.0.2 | 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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#165795): https://lists.openembedded.org/g/openembedded-core/message/165795 Mute This Topic: https://lists.openembedded.org/mt/91183010/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-