Search code examples
npmspfx

SPFX - NPM Install - Slow


Should I need to do a npm install for SPFX if I have already done a global install of all the modules required by SPFX?

Restoring modules is very slow, and I'd really like to avoid doing it if necessary.


Solution

  • To get started coding faster you can start yeoman like this in CMD:

    yo @microsoft/sharepoint --skip-install

    Open project in preferred IDE, for example VS Code and start coding with:

    code .

    Start npm install in background with:

    npm install

    Continue coding in your IDE while npm installs in the background!