Hi Jose,

You have to use devtool with the --npm-dev option.

Best regards,
Jean-Marie

On Thu, Aug 27, 2020 at 12:47 PM Cardenas Jose Antonio (JCARDENA) <
[email protected]> wrote:

> Hi all,
>
>
>
> Trying to create a recipe from scratch with “devtool add” tool, a
> npm-shrinkwrap.json file is created from reading of package.json from the
> module that is going to be installed.
>
>
>
> The building goes fine but I can’t run the application in the target
> because nodejs misses the modules placed in “devDependencies” from
> package.json.
>
> I have tried to include NPM_INSTALL_DEV = "1" in the recipe but I get an
> error because the modules that appears in “devDependencies” from
> package.json are not included in npm-shrinkwrap.json.
>
> There is any way to regenerate npm-shrinkwrap.json with devtool taking in
> account devdependencies or a way to create npm-shrinkwrap.json with
> “devtool add” in a way that takes in account devDependencies?
>
>
>
> Regards
>
> Jose
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50389): https://lists.yoctoproject.org/g/yocto/message/50389
Mute This Topic: https://lists.yoctoproject.org/mt/76448481/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to