0

I have installed git and cloned the below https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples Installed node and NPM for windows.Ran npm install for just one specific folder (react-script-editor) ..this is where i stopped for now

But the question is what would be the process to be able to deploy some specific webparts to my tenant and also get my environment ready to be able to create new projects and at the same time deploy the samples.

I can't find any step by step process to install this webparts and what are the dependencies ?

Any guide or resources would be appreciated.

0

1 Answer 1

0

Follow below steps:

  1. Copy a single/specific folder corresponding the web-part you want to use.
  2. Open that folder in Node JS command prompt.
  3. Run the command: npm install.
  4. Run the command: gulp build.
  5. If there are any errors in code then fix it.
  6. If you see any error while importing libraries then you need to install those using npm.
  7. Run the command: gulp bundle --ship.
  8. Run the command: gulp package-solution --ship.

official documentation:

  1. Overview of the SharePoint Framework.
  2. Host your client-side web part from Office 365 CDN.
5
  • thanks Ganesh. Which node version though? I currently have the up to date version of @microsoft/generator-sharepoint 1.9.1. But i'm getting error saying its not compatible with the current node version which is 12.xxx
    – naijacoder
    Commented Dec 9, 2019 at 12:47
  • I would recommend you to use Node Version 10.xx and @microsoft/generator-sharepoint 1.8 Commented Dec 9, 2019 at 13:17
  • Thanks . When i check my node version using node -v it returns v10.17.0, When i do npm -v its 6.13.2 . Does this have to be the same version? If yes how can i get npm to the 10.17.0?
    – naijacoder
    Commented Dec 11, 2019 at 3:14
  • No, npm version and Node version is different. However you can upgrade npm to latest version using npm install -g npm@latest. Commented Dec 11, 2019 at 3:22
  • Hi @naijacoder, Did you solved this issue? Please Upvote(^) and accept as an Answer if it helped you so that this question will not be shown under unanswered questions list on this platform. Commented Jun 26, 2020 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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