Grunt Bower jquery.min.map error. Setting up my first MEAN app

I am trying to set up a MEAN environment. I keep getting this error:

Error: ENOENT, no such file or directory '/home/user/app1/bower_components/jquery/dist/jquery.min.map'

I tried CentOS7 and RHEL6, on CentOS I tried to install nodejs from source as well as epel. On RHEL6 I used this method to install nodejs:

curl -sL https://rpm.nodesource.com/setup | bash -
yum install -y nodejs
npm install -g mean-cli

mean init app1
cd app1 && node install

grunt
<error>

      

When I tried bower install

it I got Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular-mocks.git", exit code of #128

to install bower. To fix this run, run the following command git config --global url."https://".insteadOf git://

. I'm not sure if he is persistent.

This fixed the issue on RHEL6, but didn't fix it on CentOS7. I went back to CentOS7 and tried again and it seems to work ... I'm just going to move on and not question it now.

+3


source to share


1 answer


To download these dependencies, you need to run bower install

. You will have bower.json and possibly package.json (as you are using npm install

) at the root of your project, defining project dependencies.



+11


source







All Articles