1

I am working on smaller, but faster SSD drives, so every Megabyte hurts.

We are also used to zipping up entire projects and mailing it to developers costing half my rate

If I run the command

yo @microsoft/sharepoint

It kindly adds 318 Megabytes I do not want in my projectfolder

Can these be moved?

  • Nope this is how npm works. A similar question for angular 2 since angular 2 also uses npm. stackoverflow.com/questions/38718690/…. The final deployment files will be bundled and will be very few. – Akhoy Aug 19 '16 at 10:57
2

Welcome to the world of NPM! This is unfortunately how it works and depending on the modules you download and their dependencies you will get even more once you start building larger projects.

Also have you looked at Nuget and the packages folders on a classic simple SharePoint Add-in.

  • Nuget...No, I was trained by the late Patrick van Tisseghem a long time ago, then never touched Visual Studio again (not because of Patrick) I did ASP even longer ago, only saw a future in Front-End stuff – Danny '365CSI' Engelman Aug 19 '16 at 11:06
  • Can Spfx toolling deal with symbolic links? That would save some diskspace – Danny '365CSI' Engelman Aug 19 '16 at 11:15
  • Yes, you can do that and also npm has a feature npm link that could be used. But..you can't do that on the whole node_modules folder as all projects use different modules. – Wictor Wilen MCA MCM MVP Aug 19 '16 at 11:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.