Skip to content

Instantly share code, notes, and snippets.

@josy1024
Last active February 17, 2021 13:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josy1024/adf7d53ca9a1c66b2c2a689d3901f1e6 to your computer and use it in GitHub Desktop.
Save josy1024/adf7d53ca9a1c66b2c2a689d3901f1e6 to your computer and use it in GitHub Desktop.
windows setup sharepoint spfx
:: https://docs.microsoft.com/de-de/sharepoint/dev/spfx/set-up-your-development-environment
:: https://docs.microsoft.com/de-de/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part
:: requirements: chocolatey installed (windows)
:: SETUP ENVIRONMENT (ADMIN) #spfx
choco install nodejs-lts --version 8.11.4
refreshenv
npm install -g npm
npm install -g yo gulp
npm install -g @microsoft/generator-sharepoint
OR:
npm install gulp yo @microsoft/generator-sharepoint --global
set path=%path%;%appdata%\npm
:: HELLO WORLD (USER)
cd %userprofile%\Documents
md helloworld-webpart
cd helloworld-webpart
yo @microsoft/sharepoint
gulp trust-dev-cert
gulp serve
OR OPEN https://#tenant#.sharepoint.com/_layouts/15/workbench.aspx an select
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment