
Node node_modules/sgmf-scripts -help Visual Studio Code To install sgmf-scripts locally, Vijay enters this:Īfter the install, he can use sgmf-scripts in the current folder with a syntax similar to this. A global install isn't required, but it eliminates the install step for a new cartridge. If you install on a Mac and get an EACCES error, try Fixing Your Permissions to globally install the node. Now he can use the sgmf-scripts command-line tools in any directory on his machine with a syntax similar to this. To install globally on either type of machine, Vijay enters this: Otherwise you have to navigate to the folder they are installed in to use them. When you install sgmf-scripts globally on Windows, you can access them by just typing sgmf-scripts in the command prompt in any folder. The Windows Build Tools must be installed globally, so that npm install can use them to compile npm modules into native Windows binary files. This approach makes it easy to create custom cartridges with the correct structure anywhere on your development machine. If you're working on a *nix or Windows system, we recommend that you install the command-line build tools for SFRA globally. While packages are easy to install globally on most operating systems, it can be complicated to globally install packages on the Mac OS/X, and might be better to use them locally.

zip file, these instructions assume that you expanded it. SFRA depends on modules managed by npm.(This approach is possible only if you're in the storefront-reference-architecture directory and you installed Node.js.) Enter this: Use npm to install the modules included with SFRA.Npm install -global -production windows-build-tools -vs2015 On a Windows machine, enter this to install the Visual Studio 2015 build tools:.If it's installed, skip to the next step. If node is already installed, a version number displays.Install the latest 12.x version of Node.JS from.Open a command prompt and navigate to the storefront-reference-architecture directory.

He starts by installing Node.js and SFRA command-line tools, and then moves on to Visual Studio Code and other helpful tools and processes. Vijay Lahiri, Cloud Kicks' developer wants to configure his local machine to test and prototype his team's SFRA customizations. Compile the JavaScript, style sheets, and fonts for SFRA.Use Node Package Manager (npm) to install packages.After completing this unit, you’ll be able to:
