Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJia Li
6,363 Pointsproblems with foundation installations
I 've downloaded Git, Node and Ruby before i ran this command line on Mac, but still had the following problems:
JiaLis-MacBook-Air:~ BEAMAN$ sudo npm install -g foundation-cli bower gulp
Password:
npm WARN deprecated lodash@1.0.2: lodash@ /usr/local/lib ├─┬ bower@1.7.2 │ ├── archy@1.0.0 │ ├─┬ bower-config@1.3.0 │ │ ├── graceful-fs@4.1.2 │ │ └─┬ osenv@0.1.3 │ │ └── os-tmpdir@1.0.1 │ ├─┬ bower-registry-client@1.0.0 │ │ └── graceful-fs@4.1.2 │ ├─┬ chalk@1.1.1 │ │ ├── ansi-styles@2.1.0 │ │ ├─┬ has-ansi@2.0.0 │ │ │ └── ansi-regex@2.0.0 │ │ ├─┬ strip-ansi@3.0.0 │ │ │ └── ansi-regex@2.0.0 │ │ └── supports-color@2.0.0 │ ├── chmodr@1.0.2 │ ├─┬ configstore@0.3.2 │ │ └─┬ osenv@0.1.3 │ │ └── os-tmpdir@1.0.1 │ ├─┬ decompress-zip@0.1.0 │ │ └─┬ readable-stream@1.1.13 │ │ ├── core-util-is@1.0.2 │ │ ├── inherits@2.0.1 │ │ ├── isarray@0.0.1 │ │ └── string_decoder@0.10.31 │ ├─┬ fs-write-stream-atomic@1.0.5 │ │ ├── graceful-fs@4.1.2 │ │ └── imurmurhash@0.1.4 │ ├─┬ fstream@1.0.8 │ │ ├── graceful-fs@4.1.2 │ │ └── inherits@2.0.1 │ ├─┬ fstream-ignore@1.0.3 │ │ ├── inherits@2.0.1 │ │ └─┬ minimatch@3.0.0 │ │ └─┬ brace-expansion@1.1.2 │ │ ├── balanced-match@0.3.0 │ │ └── concat-map@0.0.1 │ ├─┬ glob@4.5.3 │ │ ├─┬ inflight@1.0.4 │ │ │ └── wrappy@1.0.1 │ │ ├── inherits@2.0.1 │ │ ├─┬ minimatch@2.0.10 │ │ │ └─┬ brace-expansion@1.1.2 │ │ │ ├── balanced-match@0.3.0 │ │ │ └── concat-map@0.0.1 │ │ └─┬ once@1.3.3 │ │ └── wrappy@1.0.1 │ ├── graceful-fs@3.0.8 │ ├─┬ inquirer@0.10.0 │ │ ├── ansi-regex@2.0.0 │ │ ├─┬ readline2@1.0.1 │ │ │ └── mute-stream@0.0.5 │ │ ├─┬ run-async@0.1.0 │ │ │ └─┬ once@1.3.3 │ │ │ └── wrappy@1.0.1 │ │ └── strip-ansi@3.0.0 │ ├─┬ insight@0.7.0 │ │ ├── async@1.5.0 │ │ ├─┬ configstore@1.4.0 │ │ │ ├── graceful-fs@4.1.2 │ │ │ ├── os-tmpdir@1.0.1 │ │ │ ├── osenv@0.1.3 │ │ │ └─┬ write-file-atomic@1.1.4 │ │ │ ├── imurmurhash@0.1.4 │ │ │ └── slide@1.1.6 │ │ ├─┬ os-name@1.0.3 │ │ │ └─┬ win-release@1.1.1 │ │ │ └── semver@5.1.0 │ │ └── tough-cookie@2.2.1 │ ├── lockfile@1.0.1 │ ├── lru-cache@2.7.3 │ ├─┬ mkdirp@0.5.0 │ │ └── minimist@0.0.8 │ ├─┬ promptly@0.2.0 │ │ └─┬ read@1.0.7 │ │ └── mute-stream@0.0.5 │ ├─┬ request@2.53.0 │ │ ├─┬ bl@0.9.4 │ │ │ └─┬ readable-stream@1.0.33 │ │ │ ├── core-util-is@1.0.2 │ │ │ ├── inherits@2.0.1 │ │ │ ├── isarray@0.0.1 │ │ │ └── string_decoder@0.10.31 │ │ ├─┬ hawk@2.3.1 │ │ │ ├── boom@2.10.1 │ │ │ ├── cryptiles@2.0.5 │ │ │ ├── hoek@2.16.3 │ │ │ └── sntp@1.0.9 │ │ ├─┬ http-signature@0.10.1 │ │ │ └── assert-plus@0.1.5 │ │ ├── isstream@0.1.2 │ │ ├── json-stringify-safe@5.0.1 │ │ ├── node-uuid@1.4.7 │ │ ├── stringstream@0.0.5 │ │ ├── tough-cookie@2.2.1 │ │ └── tunnel-agent@0.4.2 │ ├─┬ rimraf@2.5.0 │ │ └─┬ glob@6.0.3 │ │ ├─┬ inflight@1.0.4 │ │ │ └── wrappy@1.0.1 │ │ ├── inherits@2.0.1 │ │ ├─┬ minimatch@3.0.0 │ │ │ └─┬ brace-expansion@1.1.2 │ │ │ ├── balanced-match@0.3.0 │ │ │ └── concat-map@0.0.1 │ │ ├─┬ once@1.3.3 │ │ │ └── wrappy@1.0.1 │ │ └── path-is-absolute@1.0.0 │ ├─┬ tar-fs@1.9.0 │ │ ├─┬ pump@1.0.1 │ │ │ └─┬ once@1.3.3 │ │ │ └── wrappy@1.0.1 │ │ └─┬ tar-stream@1.3.1 │ │ ├── bl@1.0.0 │ │ ├─┬ end-of-stream@1.1.0 │ │ │ └─┬ once@1.3.3 │ │ │ └── wrappy@1.0.1 │ │ ├─┬ readable-stream@2.0.5 │ │ │ ├── core-util-is@1.0.2 │ │ │ ├── inherits@2.0.1 │ │ │ ├── isarray@0.0.1 │ │ │ ├── process-nextick-args@1.0.6 │ │ │ ├── string_decoder@0.10.31 │ │ │ └── util-deprecate@1.0.2 │ │ └── xtend@4.0.1 │ ├─┬ update-notifier@0.6.0 │ │ ├─┬ configstore@1.4.0 │ │ │ ├── graceful-fs@4.1.2 │ │ │ ├── os-tmpdir@1.0.1 │ │ │ ├── osenv@0.1.3 │ │ │ └─┬ write-file-atomic@1.1.4 │ │ │ ├── imurmurhash@0.1.4 │ │ │ └── slide@1.1.6 │ │ ├─┬ latest-version@2.0.0 │ │ │ └─┬ package-json@2.3.0 │ │ │ ├─┬ got@5.3.0 │ │ │ │ ├─┬ create-error-class@2.0.1 │ │ │ │ │ └── inherits@2.0.1 │ │ │ │ ├─┬ duplexify@3.4.2 │ │ │ │ │ ├─┬ end-of-stream@1.0.0 │ │ │ │ │ │ └─┬ once@1.3.3 │ │ │ │ │ │ └── wrappy@1.0.1 │ │ │ │ │ └─┬ readable-stream@2.0.5 │ │ │ │ │ ├── core-util-is@1.0.2 │ │ │ │ │ ├── inherits@2.0.1 │ │ │ │ │ ├── isarray@0.0.1 │ │ │ │ │ ├── process-nextick-args@1.0.6 │ │ │ │ │ ├── string_decoder@0.10.31 │ │ │ │ │ └── util-deprecate@1.0.2 │ │ │ │ ├─┬ pinkie-promise@2.0.0 │ │ │ │ │ └── pinkie@2.0.1 │ │ │ │ └─┬ read-all-stream@3.0.1 │ │ │ │ └─┬ readable-stream@2.0.5 │ │ │ │ ├── core-util-is@1.0.2 │ │ │ │ ├── inherits@2.0.1 │ │ │ │ ├── isarray@0.0.1 │ │ │ │ ├── process-nextick-args@1.0.6 │ │ │ │ ├── string_decoder@0.10.31 │ │ │ │ └── util-deprecate@1.0.2 │ │ │ ├─┬ rc@1.1.6 │ │ │ │ └── ini@1.3.4 │ │ │ └── semver@5.1.0 │ │ ├─┬ semver-diff@2.1.0 │ │ │ └── semver@5.1.0 │ │ └─┬ string-length@1.0.1 │ │ └─┬ strip-ansi@3.0.0 │ │ └── ansi-regex@2.0.0 │ └─┬ which@1.2.1 │ └─┬ is-absolute@0.1.7 │ └── is-relative@0.1.3 └─┬ gulp@3.9.0 ├── archy@1.0.0 ├─┬ chalk@1.1.1 │ ├── ansi-styles@2.1.0 │ ├─┬ has-ansi@2.0.0 │ │ └── ansi-regex@2.0.0 │ ├── strip-ansi@3.0.0 │ └── supports-color@2.0.0 ├─┬ gulp-util@3.0.7 │ ├─┬ dateformat@1.0.12 │ │ └─┬ meow@3.6.0 │ │ ├─┬ normalize-package-data@2.3.5 │ │ │ ├── hosted-git-info@2.1.4 │ │ │ ├── is-builtin-module@1.0.0 │ │ │ └─┬ validate-npm-package-license@3.0.1 │ │ │ ├─┬ spdx-correct@1.0.2 │ │ │ │ └── spdx-license-ids@1.1.0 │ │ │ └─┬ spdx-expression-parse@1.0.2 │ │ │ └── spdx-exceptions@1.0.4 │ │ └─┬ read-pkg-up@1.0.1 │ │ ├─┬ find-up@1.1.0 │ │ │ └─┬ pinkie-promise@2.0.0 │ │ │ └── pinkie@2.0.1 │ │ └─┬ read-pkg@1.1.0 │ │ └─┬ load-json-file@1.1.0 │ │ └── graceful-fs@4.1.2 │ ├─┬ lodash.template@3.6.2 │ │ └── lodash._basetostring@3.0.1 │ ├─┬ multipipe@0.1.2 │ │ └─┬ duplexer2@0.0.2 │ │ └── readable-stream@1.1.13 │ └─┬ through2@2.0.0 │ ├─┬ readable-stream@2.0.5 │ │ ├── core-util-is@1.0.2 │ │ ├── inherits@2.0.1 │ │ ├── isarray@0.0.1 │ │ ├── process-nextick-args@1.0.6 │ │ ├── string_decoder@0.10.31 │ │ └── util-deprecate@1.0.2 │ └── xtend@4.0.1 ├─┬ liftoff@2.2.0 │ └─┬ findup-sync@0.3.0 │ └─┬ glob@5.0.15 │ ├── inflight@1.0.4 │ ├── minimatch@3.0.0 │ └── path-is-absolute@1.0.0 ├─┬ orchestrator@0.3.7 │ └─┬ end-of-stream@0.1.5 │ └─┬ once@1.3.3 │ └── wrappy@1.0.1 └─┬ vinyl-fs@0.3.14 ├─┬ glob-stream@3.1.18 │ ├── glob@4.5.3 │ └─┬ minimatch@2.0.10 │ └─┬ brace-expansion@1.1.2 │ ├── balanced-match@0.3.0 │ └── concat-map@0.0.1 ├─┬ glob-watcher@0.0.6 │ └─┬ gaze@0.5.2 │ └─┬ globule@0.1.0 │ └─┬ minimatch@0.2.14 │ ├── lru-cache@2.7.3 │ └── sigmund@1.0.1 ├── graceful-fs@3.0.8 └─┬ mkdirp@0.5.1 └── minimist@0.0.8 npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "foundation-cli" "bower" "gulp" npm ERR! node v5.3.0 npm ERR! npm v3.5.2 npm ERR! path /usr/local/lib/node_modules/.staging/abbrev-e447be2d npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-e447be2d' -> '/usr/local/lib/node_modules/foundation-cli/node_modules/npm/node_modules/abbrev' npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-e447be2d' -> '/usr/local/lib/node_modules/foundation-cli/node_modules/npm/node_modules/abbrev' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm ERR! Please include the following file with any support request: npm ERR! /Users/BEAMAN/npm-debug.log
i have no idea what's happening. Can anyone help me with this? Thanks in advance !
3 Answers
Martijn Brackman
Full Stack JavaScript Techdegree Student 3,721 PointsHi Jia
I tried using Yeti Launch too and indeed it works. But I ran into a problem when some code from the Foundation documentation didn't work. Apparently Yeti Launch does not install the latest version of Foundation 6 and I had no clue how to upgrade my project to the latest version. With CodeKit you can effortless upgrade to the latest version. It's not possible with Yeti Launch, yet. So that is why I chose to use CodeKit.
Cena Mayo
55,236 PointsHi Jia,
Take a look at this StackOverflow discussion. In general, my understanding is that you shouldn't be using sudo with npm, and that this is likely a permissions issue.
Best, Cena
Jia Li
6,363 PointsI tried not using the sudo with npm, but still it didn't work. It seems to me that the main issue is that the lodash is no longer maintained. Upgrade to lodash^3.0.0
i get this as the first warning ...
Martijn Brackman
Full Stack JavaScript Techdegree Student 3,721 PointsHi
I am very new to programming and got stuck on updating Foundation 6 to the latest version. Then I found out I needed to use Bower, Node, ... to make things work. I really scratched my head.
Then someone on the forum pointed me to CodeKit. https://incident57.com/codekit/
It is stupid easy to start, install, update and maintain a project using the Foundation framework. https://www.youtube.com/watch?v=4DTAge4uDEg
And, it's also a compiler for Sass, and automatically updates the website in the browser on all devices in your network. It costs a bit of money but it saves you a ton of problems I think.
Jia Li
6,363 PointsThank you for your advice. I 've just solved the problem by downloading the Yeti Launch app from the Foundation website and it works. The only difference is that you won't need the terminal any more and it's free. http://foundation.zurb.com/develop/yeti-launch.html