ackages</a> page.</p>
<pre><code class="language-cmd">npm i @pnp/sp @pnp/nodejs
</code></pre>
<p>Once these are installed you need to import them into your project, to communicate with SharePoint from node we'll need the following imports:</p>
<pre><code class="language-TypeScript">
import { SPDefault } from &quot;@pnp/nodejs&quot;;
import &quot;@pnp/sp/webs/index.js&quot;;
import { readFileSync } from 'fs';
import { Configuration } from &quot;@azure/msal-node&quot;;

function() {
    // configure your node