Brett Wise
1 min readAug 3, 2016

--

As of the posting of this comment Foundation chokes on jQuery version 3 (the default installed with this command) and things won’t quite work right.

You’ll receive this error: `Uncaught TypeError: url.indexOf is not a function`

TLDR remove the previously installed jQuery by running `npm uninstall — save-dev jquery` and run this command instead: `npm install — save-dev jquery@2.2.4`

More details:

You can see the conversation about this issue here: https://github.com/zurb/foundation-sites/pull/8923

Perhaps this will be merged soon and this comment will be irrelevant.

At any rate if you have this problem the solution is the run the command:
`$ npm install — save-dev foundation-sites motion-ui sass-brunch jquery@2.2.4`

The key here being that you run jQuery with the addtional `@2.4.4` to specify the version that Foundation does work with.

--

--

Brett Wise

I help run the Chattanooga Developer Lunch. I also do web development consulting. I write JS & Elixir every day.