Hi,

Am 16.02.2022 um 19:22 schrieb Alexander Kanavin:
not sure why this is addressed directly to me, but Stefan H. knows the most about the current state of npm (which is not great).

The problem is the new Node.js / npm version. This runs prepare during pack and add cache:
https://docs.npmjs.com/cli/v7/using-npm/scripts#life-cycle-operation-order

It looks like other have similar problems:
https://github.com/Homebrew/homebrew-core/issues/63798

On Wed, 16 Feb 2022 at 18:58, Christian Eggers <[email protected] <mailto:[email protected]>> wrote:


[snip]

    
"/home/<...>/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-quicktype/15.0.260-r0/recipe-sysroot-native/usr/bin/node"
    
"/home/<...>/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-quicktype/15.0.260-r0/recipe-sysroot-native/usr/bin/npm"
    "pack"
    
"/home/<...>/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-quicktype/15.0.260-r0/npm/node_modules/acorn"
    "--ignore-scripts=true"

The npm command ignores the `ignore-scripts` argument and runs the prepare script. We have to remove the prepare script via `npm set-script` before the `npm pack`:
https://docs.npmjs.com/cli/v7/commands/npm-set-script

Regard
  Stefan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95377): 
https://lists.openembedded.org/g/openembedded-devel/message/95377
Mute This Topic: https://lists.openembedded.org/mt/89191170/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to