Question: npm do not install optional dependencies?
Answer: The --no-optional argument will prevent optional dependencies from being installed. The --no-shrinkwrap argument, which will ignore an available package lock or shrinkwrap file and use the package. json instead. The --no-package-lock argument will prevent npm from creating a package-lock.