Monday, 10 April 2017

mozu project install error using npm

I have installed node version-v6.10.2-x64 on my desktop. I am using Mozu platform and unbale to install directory repository on my local machine. The error comes in q.js

TypeError: Cannot read property 'indexOf' of undefined at C:\Users\onika.kapoor\node_modules\quick-git-hits\index.js:11:47 at C:\Users\onika.kapoor\node_modules\buffered-spawn\index.js:92:9 at _rejected (C:\Users\onika.kapoor\node_modules\q\q.js:864:24) at C:\Users\onika.kapoor\node_modules\q\q.js:890:30 at Promise.when (C:\Users\onika.kapoor\node_modules\q\q.js:1142:31) at Promise.promise.promiseDispatch (C:\Users\onika.kapoor\node_modules\q\q.j :808:41) at C:\Users\onika.kapoor\node_modules\q\q.js:624:44 at runSingle (C:\Users\onika.kapoor\node_modules\q\q.js:137:13) at flush (C:\Users\onika.kapoor\node_modules\q\q.js:125:13) at _combinedTickCallback (internal/process/next_tick.js:73:7).

Why m i not able to install the repositoy on using mozu ,node commands on my local machine ?

Following are the commands that I ran on my local machine :

1.Download and install Node.js from https://nodejs.org/ for your particular operating system. For the purpose of this class, install the mature and dependable version of Node. ·(Optional) Once you’ve installed Node.js, you can choose to install a package named nvm. Nvm allows you to easily switch between versions of Node.js. In your terminal or command line tool, run this command: npm install -g nvm ·Check to verify Node.js and npm were installed correctly. npm --version node --version 2.Install Yeoman and Grunt-CLI ·You’ll use Yeoman to scaffold the files and directories you need for your Arc.js application. Mozu has a generator that you’ll also install. npm install –g yo ·Grunt is used when building our Arc.js distribution code and Mozu has prewritten Grunt tasks available through the generator as well. npm install –g grunt-cli 3.Install the Yeoman generator for Mozu’s Action Generator ·npm install –g generator-mozu-actions ,npm install generator-mozu-actions ,npm install generator-mozu-actions

After this when i run the command :

yo mozu-actions

It shows the above mentioned error on command prompt. Please help and solve .



via Er. Sahil Gupta

No comments:

Post a Comment