Removing gulp and starting over












0















I have an old project from two years ago that I am trying to update. At this point I want to remove gulp completely from my machine and start over with the new guide for version 4 of npm install --global gulp-cli, but I get the following error:



npm ERR! code EEXIST
npm ERR! Refusing to delete /Users/danale/.npm-global/share/man/man1/gulp.1: ../../../lib/node_modules/gulp/gulp.1 symlink target is not controlled by npm /Users/danale/.npm-global/share/man/man1
npm ERR! File exists: /Users/danale/.npm-global/share/man/man1/gulp.1
npm ERR! Move it away, and try again.


I have tried rm -rf node_modules/, then npm install gulp-cli -g and the error returns. The file that needs to be deleted is here 0 lrwxr-xr-x 1 danale admin 36 Aug 18 2017 gulp -> ../lib/node_modules/gulp/bin/gulp.js.



I have tried $ rm ~/lib/node_modules/gulp/bin/gulp.js
rm: /Users/danale/lib/node_modules/gulp/bin/gulp.js: No such file or directory
.



I am still unable to remove it. How do I remove gulp completely from my Mac OSX and just start over according to current gulp documentation?










share|improve this question



























    0















    I have an old project from two years ago that I am trying to update. At this point I want to remove gulp completely from my machine and start over with the new guide for version 4 of npm install --global gulp-cli, but I get the following error:



    npm ERR! code EEXIST
    npm ERR! Refusing to delete /Users/danale/.npm-global/share/man/man1/gulp.1: ../../../lib/node_modules/gulp/gulp.1 symlink target is not controlled by npm /Users/danale/.npm-global/share/man/man1
    npm ERR! File exists: /Users/danale/.npm-global/share/man/man1/gulp.1
    npm ERR! Move it away, and try again.


    I have tried rm -rf node_modules/, then npm install gulp-cli -g and the error returns. The file that needs to be deleted is here 0 lrwxr-xr-x 1 danale admin 36 Aug 18 2017 gulp -> ../lib/node_modules/gulp/bin/gulp.js.



    I have tried $ rm ~/lib/node_modules/gulp/bin/gulp.js
    rm: /Users/danale/lib/node_modules/gulp/bin/gulp.js: No such file or directory
    .



    I am still unable to remove it. How do I remove gulp completely from my Mac OSX and just start over according to current gulp documentation?










    share|improve this question

























      0












      0








      0








      I have an old project from two years ago that I am trying to update. At this point I want to remove gulp completely from my machine and start over with the new guide for version 4 of npm install --global gulp-cli, but I get the following error:



      npm ERR! code EEXIST
      npm ERR! Refusing to delete /Users/danale/.npm-global/share/man/man1/gulp.1: ../../../lib/node_modules/gulp/gulp.1 symlink target is not controlled by npm /Users/danale/.npm-global/share/man/man1
      npm ERR! File exists: /Users/danale/.npm-global/share/man/man1/gulp.1
      npm ERR! Move it away, and try again.


      I have tried rm -rf node_modules/, then npm install gulp-cli -g and the error returns. The file that needs to be deleted is here 0 lrwxr-xr-x 1 danale admin 36 Aug 18 2017 gulp -> ../lib/node_modules/gulp/bin/gulp.js.



      I have tried $ rm ~/lib/node_modules/gulp/bin/gulp.js
      rm: /Users/danale/lib/node_modules/gulp/bin/gulp.js: No such file or directory
      .



      I am still unable to remove it. How do I remove gulp completely from my Mac OSX and just start over according to current gulp documentation?










      share|improve this question














      I have an old project from two years ago that I am trying to update. At this point I want to remove gulp completely from my machine and start over with the new guide for version 4 of npm install --global gulp-cli, but I get the following error:



      npm ERR! code EEXIST
      npm ERR! Refusing to delete /Users/danale/.npm-global/share/man/man1/gulp.1: ../../../lib/node_modules/gulp/gulp.1 symlink target is not controlled by npm /Users/danale/.npm-global/share/man/man1
      npm ERR! File exists: /Users/danale/.npm-global/share/man/man1/gulp.1
      npm ERR! Move it away, and try again.


      I have tried rm -rf node_modules/, then npm install gulp-cli -g and the error returns. The file that needs to be deleted is here 0 lrwxr-xr-x 1 danale admin 36 Aug 18 2017 gulp -> ../lib/node_modules/gulp/bin/gulp.js.



      I have tried $ rm ~/lib/node_modules/gulp/bin/gulp.js
      rm: /Users/danale/lib/node_modules/gulp/bin/gulp.js: No such file or directory
      .



      I am still unable to remove it. How do I remove gulp completely from my Mac OSX and just start over according to current gulp documentation?







      node.js npm gulp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 '18 at 18:00









      DanielDaniel

      2,23321334




      2,23321334
























          1 Answer
          1






          active

          oldest

          votes


















          1














          Looks like it worked when I removed the file like so:



          rm /Users/danale/.npm-global/share/man/man1/gulp.1 and then tried:



          $ npm install --global gulp-cli
          /Users/danale/.npm-global/bin/gulp -> /Users/danale/.npm-global/lib/node_modules/gulp-cli/bin/gulp.js
          + gulp-cli@2.0.1
          added 235 packages from 148 contributors in 3.038s





          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53436205%2fremoving-gulp-and-starting-over%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Looks like it worked when I removed the file like so:



            rm /Users/danale/.npm-global/share/man/man1/gulp.1 and then tried:



            $ npm install --global gulp-cli
            /Users/danale/.npm-global/bin/gulp -> /Users/danale/.npm-global/lib/node_modules/gulp-cli/bin/gulp.js
            + gulp-cli@2.0.1
            added 235 packages from 148 contributors in 3.038s





            share|improve this answer




























              1














              Looks like it worked when I removed the file like so:



              rm /Users/danale/.npm-global/share/man/man1/gulp.1 and then tried:



              $ npm install --global gulp-cli
              /Users/danale/.npm-global/bin/gulp -> /Users/danale/.npm-global/lib/node_modules/gulp-cli/bin/gulp.js
              + gulp-cli@2.0.1
              added 235 packages from 148 contributors in 3.038s





              share|improve this answer


























                1












                1








                1







                Looks like it worked when I removed the file like so:



                rm /Users/danale/.npm-global/share/man/man1/gulp.1 and then tried:



                $ npm install --global gulp-cli
                /Users/danale/.npm-global/bin/gulp -> /Users/danale/.npm-global/lib/node_modules/gulp-cli/bin/gulp.js
                + gulp-cli@2.0.1
                added 235 packages from 148 contributors in 3.038s





                share|improve this answer













                Looks like it worked when I removed the file like so:



                rm /Users/danale/.npm-global/share/man/man1/gulp.1 and then tried:



                $ npm install --global gulp-cli
                /Users/danale/.npm-global/bin/gulp -> /Users/danale/.npm-global/lib/node_modules/gulp-cli/bin/gulp.js
                + gulp-cli@2.0.1
                added 235 packages from 148 contributors in 3.038s






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 22 '18 at 20:21









                DanielDaniel

                2,23321334




                2,23321334






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53436205%2fremoving-gulp-and-starting-over%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wiesbaden

                    Marschland

                    Dieringhausen