Forum Discussion
Fredrick Lassiter
Feb 08, 2018Copper Contributor
Yeoman Scaffolding and Node_Modules
Every time I create a new Web Part using Yeoman (yo @micrsosoft/sharepoint) in NPM, I get a huge project including tons of node_modules. The folder adds up to almost 300. I have tested adding web par...
Anonymous
Feb 08, 2018normally when you install a node module you add the -g flag and it puts in the global path rather than the local path.
npm install -g <node-module>
(Caveat - I have not used the SharePoint Webpart Yeoman install, so not sure of the behavior, but have done plenty of nodejs).
- Fredrick LassiterFeb 08, 2018Copper Contributor
Thanks Stephen. Yes, I have read in Node.js you can customize the installation of various nodes that you need, however seems like this Yoeman generator just spits everything out! The Visual Studio method of developing the SPFx framework may not have the same behavior.