SharePoint Framework

SharePoint Framework (SPFX) and Linux

Posted on Updated on

Recently Microsoft released a the preview version of SPFx, as Microsoft say:

“The SharePoint Framework is a Page and Part model that enables client-side development for building SharePoint experiences. It facilitates easy integration with the SharePoint data, and provides support for open source tooling development.”

I’ve been use it in windows 10 1670, but in Linux also.

This Though, mini Article is a way to provide my experience and some suggestions for you. In my case I use Hyper-V with a VM for 1 processor and RAM defined for max (6GB)

Install Lubuntu, its lite and very user friendly. It’s based on Ubuntu but have a lite UI (LXDE).

For me the main problem was with the VM Screen resolution, for accomplish this, just run

Change this line

sudo nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT=

image

TO (in my case 1366×768)

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash video=hyperv_fb:1366×768″

Then

sudo update-grubsudo update-grub

Save and restart

At this time, you must follow some procedures in the LXTerminal

Install node.js

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm

Install Gulp and npm

sudo npm i -g yo gulp

image

Install the Compiler Tools

sudo apt-get install build-essential

Install Yeoman SharePoint Generator

sudo npm i -g @microsoft/generator-sharepoint

image

Install Visual Studio Code

https://code.visualstudio.com/#alt-downloads

image

Next just follow all procedures from the SPFx official Git and enjoy

https://github.com/SharePoint/sp-dev-docs/wiki

image

FIXES

Gulp give error installing

sudo npm install npm –g
sudo ln -s /usr/bin/nodejs /usr/bin/node

Install Gulp again and continue all points