Re: devtool add <npmmodule> ignores "devDependencies" from package.json when generates npm-shrinkwrap.json file


Jean-Marie Lemetayer
 

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) <joseantonio.cardenas@...> 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


Join yocto@lists.yoctoproject.org to automatically receive all group messages.