Posts

Showing posts with the label sppkg

Useful NPM commands wrt SharePoint Framework SPFx

Image
Hi, we are all now in the new world of SharePoint i.e.. SharePoint Framework, and Microsoft had changed a lot from its predecessor. In this blog I will tell you about the most basic commands that you might need in day to day operations. Below are some of the commands, that I found to be useful: npm -v: This is to know the version of the npm and to check if the npm is installed on your machine node -v: This command tells the version of the node.js and to check if the node is installed on your machine npm outdated: Tells you which installed packages are outdated with respect to what is current in the npm registry but allowable by the version definition in your package.json npm prune: Removes packages not depended on by your project according to your package.json npm list:   Lists all installed packages npm install <package>: Installs the npm package npm install: Installs all the dependencies mentioned in package.json npm uninstall <package>:...