Office 365 – SPFx – downgrade your npm

A while back I upgraded npm to version 5 using

npm install -g npm@latest


npm install -g npm@5

not really realising that SPFx doesn’t support version 5 of npm (yet). I had to downgrade npm.

running npm install -g npm@3 seemed to be to obvious but that didn’t work:

I tried uninstalling node.js and I tried removing the npm.cmd command mentioned, but all didn’t work.

then I came across the folder C:\Users\myusername\AppData\Roaming with a folder npm and npm-cache

I removed these two folders and then reinstalled node.js. and now npm -v returns the correct version:


Please leave a comment or feedback

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.