- devtool add <npmmodule> ignores "devDependencies" from package.json when generates npm-shrinkwrap.json file
Re: devtool add <npmmodule> ignores "devDependencies" from package.json when generates npm-shrinkwrap.json file
toggle quoted messageShow quoted text
You have to use devtool with the --npm-dev option.
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?
Join email@example.com to automatically receive all group messages.