NPM 7 workspaces – how to install new package in workspace?

Workspace support for npm install and npm uninstall was added in npm v7.14.0. You can now just do:

npm i somepackage --workspace=submodule0

Uninstalling modules has been the biggest pain, so this is really exciting. The npm team seems to be slowly adding support to commands one by one. Follow updates here: https://github.com/npm/cli/blob/latest/CHANGELOG.md.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)