Showing posts with label nodejs. Show all posts
Showing posts with label nodejs. Show all posts

Monday, 20 February 2017

SharePoint Framework / NodeJS ( setup envoriment)


Hello SharePointiens,

i will show you how we configure our workspace to work with Sharepoint Framework:
Tools :
NodeJS server.
Visual Studio Code.
Cmder.

Open cmder :
d:/
mkdir workspace
cd workspace
mkdir SPFramework
cd SPFramework
mkdir HelloWorld
cd HelloWorld



now we should install yoman :
# install yo & gulp


npm install yo gulp
# install Sharepoint generator
npm install --global @microsoft/sharepoint-generator
# create a new project
yo @microsoft/sharepoint














specify he solution name,the target of the project , ....
install the certification SSL : gulp trust-dev-cert
to test if its ok run
gulp serve

the browser will open a new workbench page to test your sharepoint webpart on your localhost machine.



if you have this errors :
Error - typescript - node_modules@types\lodash\index.d.ts(11444,21): error TS1005: ']' expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,22): error TS1005: ';' expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,23): error TS1128: Declaration or statement expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,33): error TS1005: ']' expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,34): error TS1005: ')' expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,35): error TS1128: Declaration or statement expected.
Error - typescript - node_modules@types\lodash\index.d.ts(11444,37): error TS1128: Declaration or statement expected.
Error - typescript - node_modules@types\lodash\index.d.ts(19441,1): error TS1128: Declaration or statement expected.

Execute this : npm install @types/lodash@4.14.50
then : gulp serve

Featured Post

Developer Dashbord SharePoint PowerShell

Developer Dashbord $cs = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $dash= $cs.DeveloperDashboardSettings $dash....