Forum Discussion
Nigel_Price9911
Sep 05, 2016Iron Contributor
Possible Problems with sp-pnp-js packaging
I have been trying to get @SPDoctor's SiteInfo web part working with SPFx framework. One of the dependencies is sp-pnp-js. I get failures when I try and compile the webpart with gulp serve :- '...
Nigel_Price9911
Sep 06, 2016Iron Contributor
Hi
I finally got this to work by doing the following :-
npm install typings -g
which fixed the first problem and the I got "cannot find module 'sp-pnp-js'@ error
I tried npm install -g sp-pnp-js --save
That did not work.
But npm install --save sp-pnp-js did work !!
Regards
Nigel
Joao Livio
Oct 08, 2016Iron Contributor
Hi,
In the worst scenario
npm cache clean npm install typings -g npm install sp-pnp-js --save