You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install ALL dependencies and devDependencies before prepare
The old fix for installing only devDependencies before preparing the project has a problem:
`npm install <devPackagesNames>` does not respect the versions from the devDependencies section and always installs the latest versions.
We cannot use `npm install <devPackageName>@<version>` as we do not know if they are real versions or paths or even "frog legs".
There's a magical flag `--dev` which should allow you to do:
`npm install <devPackagesNames> --dev` and it will respect the versions from devDependencies. Unfortunately this flag forces recursive installation of devDependencies all down the tree of packages.
Of course npm has another rabbit in the hat - `--only=dev`. However I couldn't get it work at all.
So the only solution I could think about is to install all dependencies before preparing the project.
this.$errors.failWithoutHelp(`Unable to install dependencies. Make sure your package.json is valid and all dependencies are correct. Error is: ${err.message}`);
167
+
}
163
168
164
169
this.preparePlatformCore(platform).wait();
165
170
}).future<void>()();
@@ -223,7 +228,6 @@ export class PlatformService implements IPlatformService {
0 commit comments