How to run Elbrus Version in Local System

Before running it we need to ensure that the Node Version and Gulp version are exactly the same as needed in the SuiteCommerce Elbrus version.

Ensure that node 4.9.1gulp 3.9.1, and npm 4.6.1 are being used in the development environment. These versions are supported by Elbrus Release of SuiteCommerce Advanced.

  1. o verify that NodeGulp, and npm is installed correctly, follow this checklist:
    • To check the node, run node -v in the command line window
      • To run multiple Node versions, see article 49023 Use Multiple Node.js Versions for SuiteCommerce Advanced Deployment
    • To check gulp, run gulp -v in the command line window
      • To update the gulp version to the 3.9.1 version, run the command npm install gulp@3.9.1
    • To check npm, run npm -v in the command line window
      • To update the npm version to 4.6.1, run the command npm install -g npm@4.6.1
  2. Run gulp on the command line window for testing
  3. Run gulp local on the command line window for testing

If we’re going to run that without the same versions this will through errors to remove the first we need to ensure all the things are correct.

Then even after we’re getting the error we need to follow some steps to overcome these errors.

When running the Gulp Local command on the local environment, the following issues may happen in your development environment.

  • Issue I: Invalid left-hand side in the assignment.
"dependencies": {
...
...
...
"xmlbuilder": "11.0.0",
"xml2js": "0.4.5",
"yargs": "1.3.1",
"credentials-inquirer": "file:./ns_npm_repository/credentials-inquirer",
"suitetalk": "file:./ns_npm_repository/suitetalk4node",
"preconditions": "file:./ns_npm_repository/preconditions"
},
  1. Delete the node_modules and LocalDistribution folders on the root of Elbrus local source files
  2. Run npm install on the command line window in the working directory path
  3. Run gulp on the command line window for testing
  4. Run gulp local on the command line window for testing

Issue II: TypeError: out.writeUint32LE is not a function Error During Gulp Command

When running the Gulp Local command to see developments locally on your NetSuite SCA Website, there are times that an error – TypeError: out.writeUint32LE is not a function is thrown.

To resolve this, follow the instructions below prior to running the gulp commands:

For this, we need to go inside our node modules of the local folder, and there we need to install the nodes.

  1. In the root directory of SCA using the command prompt window, go to ./node_modules/gulp-ttf2woff
  2. Run npm install ttf2woff@2.0.2
  3. Go to ./node_modules/gulp-ttf2eot
  4.  Run npm install ttf2eot@2.0.0

If everything is correct as mentioned in this article you’ll be able to run that locally in the Local system.

Leave a comment

Your email address will not be published. Required fields are marked *