SP Framework – MacOS Sierra – Troubles and resolution

Hi guys,

Here is a very quick blog post to give some answer to the poor SP Developer who are running on a mac, dealing with the new SharePoint Framework.

So, after updating to MacOS Sierra, you should experiments two troubles (I did) : a DNS Error (DNS_PROBE_FINISHED_NXDOMAIN), and a npm error (uid must be an unsigned int)

#1 – DNS Error during debug

Capture d’écran 2016-09-24 à 09.09.47.png

It is really easy to solve this one :

  • In Terminal, just type
 sudo nano /etc/hosts 
  • Type your password
  • In the text editor, add a line
      the-name-of-your-mac.local       localhost 

    So the file should be like this :Capture d’écran 2016-09-24 à 11.08.16.png


  • Hit ctrl+x, then Y, then Return
  • You’re all done : it works

Capture d’écran 2016-09-24 à 11.09.41.png



#2 – npm error (nodeJS) when you try to install/update anything with npm

Capture d’écran 2016-09-24 à 11.02.59.png

The error is typically  : « uid must be an unsigned int »

This is linked to an user uid modification during the MacOS upgrade process (don’t ask me anymore). The solution was found on GitHub, with the help of Ed Pelc. Ed does not really explain how to install this very helpful utility called « n ». It allows you to change your version of node really easily.

So, go on https://github.com/tj/n, download the package like this :

Capture d’écran 2016-09-24 à 11.25.04.png

Because MacOS Sierra is smart, the zip will be automatically unzipped as a folder, in the « Download » folder.

In the terminal make a

cd ..
cd Downloads/n-master
make install
sudo n 6.2

This last command will change your version of node to a working one !


That’s it ! I will be back soon with a full tutorial about the framework jPBI.js recoded in a SharePoint Framework webpart !

Votre commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l’aide de votre compte WordPress.com. Déconnexion /  Changer )

Photo Google

Vous commentez à l’aide de votre compte Google. Déconnexion /  Changer )

Image Twitter

Vous commentez à l’aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l’aide de votre compte Facebook. Déconnexion /  Changer )

Connexion à %s