SPFX commends
yo @microsoft/sharepoint
npm i @pnp/sp
npm i @pnp/sp@2.11.0
npm update lodash
npm ls lodash
npm fund
npm update lodash
import React, { Component } from "react";
import "bootstrap/dist/css/bootstrap.min.css";
npm i @pnp/spfx-controls-react
npm i @pnp/sp @pnp/spfx-controls-react
npm install @pnp/spfx-controls-react --save --save-
npm install jquery
npm i --save-dev @types/jquery
1. to check the node version: node -v
2. to check the npm version:npm -v
3. to check the gulp version: gulp -v
4. to check the list of all dependent versions: npm list -g --depth=0
5. to force clean, npm caches: npm cache clean -force
6. to install the latest npm version: npm install npm@latest -g
gulp build
gulp bundle --ship
gulp package-solution --ship
Comments
Post a Comment