Before start working on SPFx, we need to have some tools installed on our system. Below is a list of commands to uninstall/install these tools in sequence. There are 2 ways to make setup. EITHER we check each and every tools whether already installed or not and the install the remaining ones OR we uninstall all the required tools and then install back. Here, we are providing the uninstall and install commands. Choice is yours which path to follow.
Before starting the process, make sure, Node JS and npm are installed on your system. To verify, open command prompt. Change directory path to C:. Then execute below commands-
- node -v /* For Node Version */
- npm -v /* For NPM Version */
Uninstall Commands-
- npm uninstall -g chalk
- npm uninstall -g loadash
- npm uninstall -g lodash
- npm uninstall -g tar-fs
- npm uninstall -g update-notifier
- npm uninstall -g yeoman-generator
- npm uninstall -g yosay
- npm uninstall -g yo
- npm uninstall -g gulp
- npm rm -g gulp-cli
- npm uninstall -g @microsoft/generator-sharepoint
Install Commands-
- npm install -g chalk
- npm install -g loadash
- npm install -g lodash
- npm install -g tar-fs
- npm install -g update-notifier
- npm install -g yeoman-generator
- npm install -g yosay
- npm install -g yo
- npm install -g gulp
- npm install -g gulp-cli --force
- npm install -g @microsoft/generator-sharepoint
- npm install gulp@next (if got error of primordials is not defined)
- npm install -g npm@latest
To install gulp locally in project directory, we use below command-
npm install --save-dev gulp /* Install gulp locally in project directory folder */
To list all npm installations-
npm ls -g --depth=0 /* List All npm Installations */
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.