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 trialchuck kotulka
4,583 Pointsuninstall foundation apps
how to completely uninstall foundation apps . I need to completely uninstall and reinstall .
7 Answers
chuck kotulka
4,583 PointsNo I don't remember that command being mentioned, maybe you can help with the reason that I am trying to remove . when iI try to start the server it gives me this error:
[20:55:16] Error: The libsass
binding was not found in /Users/kotulka/Desktop/trekker/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-46/binding.node
This usually happens because your node version has changed.
Run npm rebuild node-sass
to build the binding for your current node version.
at Object.sass.getBinaryPath (/Users/kotulka/Desktop/trekker/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:158:11)
at Object.<anonymous> (/Users/kotulka/Desktop/trekker/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:16:36)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Users/kotulka/Desktop/trekker/node_modules/gulp-sass/index.js:176:21)
at Module._compile (module.js:435:26)
[20:55:16] 'build' errored after 5.7 s
[20:55:16] Error in plugin 'run-sequence'
Message:
An error occured in task 'sass'.
[20:55:16] Finished 'copy' after 5.79 s
Error: foundation-apps-template@1.1.0 start: gulp
Exit status 1
at EventEmitter.<anonymous> (/usr/local/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/lifecycle.js:214:16)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/foundation-cli/node_modules/npm/lib/utils/spawn.js:24:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
chucks-MacBook-Pro:trekker kotulka$
Cole Slankard
24,997 PointsHey Chuck,
You can uninstall packages that you install through npm with command:
npm uninstall <package name>
The documentation for this is located here: https://docs.npmjs.com/cli/uninstall
chuck kotulka
4,583 Pointshey cole , thanks for the advice although it didn't work. here is what the CLI spit out.
thanks chuck
npm WARN uninstall not installed in /Users/kotulka/node_modules: "foundation-apps" npm WARN uninstall not installed in /Users/kotulka/node_modules: "exit" chucks-MacBook-Pro:~ kotulka$ npm uninstall <trekker> -bash: syntax error near unexpected token `newline' chucks-MacBook-Pro:~ kotulka$ npm uninstall trekker npm WARN uninstall not installed in /Users/kotulka/node_modules: "trekker" chucks-MacBook-Pro:~ kotulka$ cd desktop chucks-MacBook-Pro:desktop kotulka$ npm uninstall trekker npm WARN uninstall not installed in /Users/kotulka/Desktop/node_modules: "trekker" chucks-MacBook-Pro:desktop kotulka$
Cole Slankard
24,997 PointsWhen you installed it did you use what the video had for the command of "npm install -g foundation-cli"? If so, you should try:
npm uninstall -g foundation-cli
if you also wanted to remove bower and gulp, try using:
npm uninstall -g foundation-cli bower gulp
The "-g" means global, without it the package would be installed locally to a project you are working on.
I also just noticed that you are within the directory of "node_modules", for a local package removal you need to be in the directory that contains "node_modules". In this case that would be "kotulka". However if you did install it globally using "-g" in your command, you can uninstall it globally using the commands I listed that incorporated "-g".
chuck kotulka
4,583 Pointshey man , you rock !! that worked like a charm !!
thanks chuck
Cole Slankard
24,997 PointsAwesome! Have fun with Foundation, it's a powerful framework.
Anika Jaffara
20,364 PointsSuddenly I'm getting an error. Today I tried to start my project, and I got an error. Then I got a command that said to run npm update foundation-apps cli. So I did, and now when I run foundation-apps watch I just get a command not found error.
Toivo Nkandi
2,456 PointsI need help too. Thanks a lot firstly to the two who helped uninstall foundation. My problem is that when I install it and want to create a new app... its tells me that it cant download the content because I didnt configure my git app correctly when I installed it therefore my git clone wont respond... or something like that.
Toivo Nkandi
2,456 PointsI need help too. Thanks a lot firstly to the two who helped uninstall foundation. My problem is that when I install it and want to create a new app... its tells me that it cant download the content because I didnt configure my git app correctly when I installed it therefore my git clone wont respond... or something like that.
Cole Slankard
24,997 PointsCole Slankard
24,997 PointsIn that case you need to go to the directory "/Users/kotulka/Desktop/trekker/" and run
npm rebuild node-sass
You may have been running an older version that is now conflicting with gulp-sass