While working on a SuiteCommerce Advanced (SCA) project, we often use gulp commands such as gulp extension:fetch or gulp extension:deploy to manage and deploy extensions. However, a common issue that can arise is Gulp appearing to be installed, yet failing to execute properly—throwing errors like “Local gulp version unknown”.
- Uninstall the current Node.js version
- Remove the existing Node.js installation completely to ensure no residual configuration files remain. This helps eliminate any corrupted or conflicting setups.
- Install Node.js using nvm
- nvm install node
- Set it as the default version:
- nvm use node nvm alias default node
- Reinstall Gulp
- With Node.js properly installed via
nvm, reinstall Gulp globally and locally: - npm install –global gulp-cli npm install –save-dev gulp
- Verify Installation
- Confirm that Gulp is correctly installed and recognized:
gulp –version
You should now see both the CLI and local versions listed without errors.