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
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
NPM < v3 on Windows can't correctly restore the full dependency tree for packages like @angular/*.
If you use these Yeoman generators, you'll eventually end up with an error like:
ERROR in ./ClientApp/boot-client.ts
Module not found: Error: Cannot resolve module 'reflect-metadata' in C:\Users\stevesa\Desktop\spapacktest2\ClientApp
@ ./ClientApp/boot-client.ts 4:0-27
The underlying cause is NPM not restoring the packages properly, and the solution is to update to NPM 3+. We should prevent things from getting this far by stopping the generator up front if you're on NPM < 3 on Windows.
The text was updated successfully, but these errors were encountered:
Note that this will only help partially. Even if your command-line-invoked copy of NPM is 3.x, your VS installation might still invoke NPM 2.x, so you'll still have trouble.
When some version of VS ships that includes NPM 3.x, we might want to check that, if you're on Windows, you have that version of VS (or no version of VS).
NPM < v3 on Windows can't correctly restore the full dependency tree for packages like
@angular/*
.If you use these Yeoman generators, you'll eventually end up with an error like:
The underlying cause is NPM not restoring the packages properly, and the solution is to update to NPM 3+. We should prevent things from getting this far by stopping the generator up front if you're on NPM < 3 on Windows.
The text was updated successfully, but these errors were encountered: