It seems like you forgot to initialize your working directory: npm init.
Do the same for bower.
When you install a package with npm you can pass --save or --save-dev as parameters so npm will track the name and the version of the package in the package.json file.This allow to any one who clone your repo to run npm install and get all the packages been listed on the package.json file. If you want to use bower then you need to install it with npm install bower --save-dev and then install packages the same way as with npm. e.g: bower install jquery -S. So bower will track the dependencies of your project on a bower.json file. It is posible to add a preinstall and postinstall key on the scripts section of the package.json file so npm will run the those commands before of after installing your dependencies:
"postinstall": "bower install"
To replace the scripts and links styles you'll need to create a task on your gulp file
Asked in February 2016Viewed 2,146 timesVoted 8Answered 1 times