简体   繁体   中英

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

I'm trying to setup 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've tried on CentOS7 and RHEL6, on CentOS I tried installing nodejs from source and also from epel. On RHEL6 I used this method to setup 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 I got Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular-mocks.git", exit code of #128 on bower install. To fix this run this command git config --global url."https://".insteadOf git:// I'm not sure if it is persistent.

That fixed the problem on RHEL6 but it didn't fix it on CentOS7. I went back to CentOS7 and tried again and it seems to have worked... I'm just going to move on and not question it for now.

You'll need to run bower install to download those dependencies. You'll have bower.json and maybe package.json (since you are running npm install ) in your project root specifying the project dependencies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM