ERROR in Cannot find module 'node-sass'












41















Config: macOS High Sierra, version 10.13.2, node:v8.1.2 npm:5.0.3
When I run npm start in my angularjs project I get this error:



ERROR in Cannot find module 'node-sass'


After this I run:



npm i node-sass


Now I get this error:



gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1


Why won't npm install node-sass? How can I install node-sass?










share|improve this question


















  • 7





    run npm install --save-dev node-sass

    – Ashok R
    Sep 16 '18 at 9:02
















41















Config: macOS High Sierra, version 10.13.2, node:v8.1.2 npm:5.0.3
When I run npm start in my angularjs project I get this error:



ERROR in Cannot find module 'node-sass'


After this I run:



npm i node-sass


Now I get this error:



gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1


Why won't npm install node-sass? How can I install node-sass?










share|improve this question


















  • 7





    run npm install --save-dev node-sass

    – Ashok R
    Sep 16 '18 at 9:02














41












41








41


6






Config: macOS High Sierra, version 10.13.2, node:v8.1.2 npm:5.0.3
When I run npm start in my angularjs project I get this error:



ERROR in Cannot find module 'node-sass'


After this I run:



npm i node-sass


Now I get this error:



gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1


Why won't npm install node-sass? How can I install node-sass?










share|improve this question














Config: macOS High Sierra, version 10.13.2, node:v8.1.2 npm:5.0.3
When I run npm start in my angularjs project I get this error:



ERROR in Cannot find module 'node-sass'


After this I run:



npm i node-sass


Now I get this error:



gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1


Why won't npm install node-sass? How can I install node-sass?







angularjs node.js npm macos-high-sierra






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 8 '18 at 9:59









bier hierbier hier

2,592103373




2,592103373








  • 7





    run npm install --save-dev node-sass

    – Ashok R
    Sep 16 '18 at 9:02














  • 7





    run npm install --save-dev node-sass

    – Ashok R
    Sep 16 '18 at 9:02








7




7





run npm install --save-dev node-sass

– Ashok R
Sep 16 '18 at 9:02





run npm install --save-dev node-sass

– Ashok R
Sep 16 '18 at 9:02












11 Answers
11






active

oldest

votes


















51















  1. This error is for node-sass is not present ... to solve this just you want to run following command


npm install node-sass






share|improve this answer





















  • 14





    add as devDependencies npm install --save-dev node-sass.

    – Ashok R
    Sep 16 '18 at 9:01






  • 4





    Doesn't help. I've already installed node-sass a dozen times (which wasn't easy), but it still fails. Node-sass is clearly a problem.

    – mcv
    Nov 6 '18 at 15:25



















23














Here's the solution:



sudo npm install --save-dev  --unsafe-perm node-sass


Enjoy!






share|improve this answer



















  • 1





    This worked, but if someone could add to the answer on why this worked and the simple npm install node-sass did not work it would be instructive.

    – Michael Potter
    Jan 14 at 5:06






  • 1





    @MichaelPotter you downvoted my answer because you couldn't find why it works?

    – Alex Onozor
    Jan 14 at 8:06








  • 3





    Actually, I upvoted it because it worked, but I would like to know WHY it worked. Kind of a mystery. Kedar's solution did not work for me, but I did not downvote his. Your answer does not have any downvotes. To see downvotes click on the number.

    – Michael Potter
    Jan 14 at 15:54











  • @AlexOnozor HOW DOES THIS WORK?

    – Bahman.A
    Jan 17 at 1:53













  • worked like magic. :-)

    – THE INN-VISIBLE
    Feb 12 at 13:59



















9














Run:



npm rebuild node-sass --force              


and it'll work fine.






share|improve this answer


























  • Doesn't work fine, sadly. For me (on windows) the problem remains.

    – mcv
    Nov 6 '18 at 15:24



















2














There is an issue with downloading npm dependencies due to network which you have. try to download the npm dependencies in open network . you won't get any issue. i am also faced this similar issue and resolved finally.



use below commands: npm install (it will download all depedencies)
npm start to start the angular application






share|improve this answer



















  • 1





    what do you mean by open network please?

    – Tiny Skillz
    Mar 1 '18 at 15:37











  • @TinySkillz i think he is mentioning no-proxy networks

    – Akhil S K
    Jul 23 '18 at 9:08





















2














It worked for me...



sudo npm rebuild node-sass --force





share|improve this answer



















  • 1





    Give some explanation so that it would be easy to understand the solution

    – Harsha B
    Oct 3 '18 at 9:14



















1














One of the cases is the post-install process fails. Right after node-sass is installed, the post-install script will be executed. It requires Python and a C++ builder for that process.
The log 'gyp: No Xcode or CLT version detected!' maybe because it couldn't find any C++ builder. So try installing Python and any C++ builder then put their directories in environment variables so that npm can find them. (I come from Windows)






share|improve this answer































    0














    If you run



    npm install node-sass


    and it still doesn't work remember to change permission to folder






    share|improve this answer

































      0














      I checked my local machine Node version which is v10.11.0



      Then when I check my development machine which has a Node version of V.10.8.0



      The error occurred.





      what I did to fix the error is that.



      In my development machine I change the version of Node which is v10.11.0 same in my local machine.



      Hope this helps.






      share|improve this answer































        0














        npm install node-sass will do the job in most of the cases, as it will add missing sass npm dependency module doesn't exist or it will overwrite previous crashed version.



        For Mac Users use sudo in front of above commands.



        On Windows machines npm rebuild node-sass --force may not work for some users because it's essentially saying, "please force npm to rebuild the sass node module for me". It will not work because that module doesn't exist.



        Whenever you did npm install to the initial installation, the sass module did not get installed, which is why this problem occurs.






        share|improve this answer

































          0














          I have also been facing this error. None of the above methods work for me. Please follow this as it worked for me.



          For Installing node-sass in Ubuntu 16 via npm :-



          You can install with npm 5.2.0 Version



          If you are using nvm :-




          nvm install 8.2.1
          nvm use 8.2.1
          npm install node-sass


          If you are using npm separately then upgrade or downgrade npm version to 5.2.0




          npm install node-sass





          share|improve this answer

































            -5














            What fixed it for me was installing the latest version of node-sass, in this case 4.7.2.






            share|improve this answer



















            • 6





              Install how? In the project or global?

              – lealceldeiro
              Apr 6 '18 at 13:29











            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%2f48147896%2ferror-in-cannot-find-module-node-sass%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            11 Answers
            11






            active

            oldest

            votes








            11 Answers
            11






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            51















            1. This error is for node-sass is not present ... to solve this just you want to run following command


            npm install node-sass






            share|improve this answer





















            • 14





              add as devDependencies npm install --save-dev node-sass.

              – Ashok R
              Sep 16 '18 at 9:01






            • 4





              Doesn't help. I've already installed node-sass a dozen times (which wasn't easy), but it still fails. Node-sass is clearly a problem.

              – mcv
              Nov 6 '18 at 15:25
















            51















            1. This error is for node-sass is not present ... to solve this just you want to run following command


            npm install node-sass






            share|improve this answer





















            • 14





              add as devDependencies npm install --save-dev node-sass.

              – Ashok R
              Sep 16 '18 at 9:01






            • 4





              Doesn't help. I've already installed node-sass a dozen times (which wasn't easy), but it still fails. Node-sass is clearly a problem.

              – mcv
              Nov 6 '18 at 15:25














            51












            51








            51








            1. This error is for node-sass is not present ... to solve this just you want to run following command


            npm install node-sass






            share|improve this answer
















            1. This error is for node-sass is not present ... to solve this just you want to run following command


            npm install node-sass







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 24 '18 at 6:54









            alexander.polomodov

            4,202132736




            4,202132736










            answered May 24 '18 at 6:34









            kedar kokilkedar kokil

            67924




            67924








            • 14





              add as devDependencies npm install --save-dev node-sass.

              – Ashok R
              Sep 16 '18 at 9:01






            • 4





              Doesn't help. I've already installed node-sass a dozen times (which wasn't easy), but it still fails. Node-sass is clearly a problem.

              – mcv
              Nov 6 '18 at 15:25














            • 14





              add as devDependencies npm install --save-dev node-sass.

              – Ashok R
              Sep 16 '18 at 9:01






            • 4





              Doesn't help. I've already installed node-sass a dozen times (which wasn't easy), but it still fails. Node-sass is clearly a problem.

              – mcv
              Nov 6 '18 at 15:25








            14




            14





            add as devDependencies npm install --save-dev node-sass.

            – Ashok R
            Sep 16 '18 at 9:01





            add as devDependencies npm install --save-dev node-sass.

            – Ashok R
            Sep 16 '18 at 9:01




            4




            4





            Doesn't help. I've already installed node-sass a dozen times (which wasn't easy), but it still fails. Node-sass is clearly a problem.

            – mcv
            Nov 6 '18 at 15:25





            Doesn't help. I've already installed node-sass a dozen times (which wasn't easy), but it still fails. Node-sass is clearly a problem.

            – mcv
            Nov 6 '18 at 15:25













            23














            Here's the solution:



            sudo npm install --save-dev  --unsafe-perm node-sass


            Enjoy!






            share|improve this answer



















            • 1





              This worked, but if someone could add to the answer on why this worked and the simple npm install node-sass did not work it would be instructive.

              – Michael Potter
              Jan 14 at 5:06






            • 1





              @MichaelPotter you downvoted my answer because you couldn't find why it works?

              – Alex Onozor
              Jan 14 at 8:06








            • 3





              Actually, I upvoted it because it worked, but I would like to know WHY it worked. Kind of a mystery. Kedar's solution did not work for me, but I did not downvote his. Your answer does not have any downvotes. To see downvotes click on the number.

              – Michael Potter
              Jan 14 at 15:54











            • @AlexOnozor HOW DOES THIS WORK?

              – Bahman.A
              Jan 17 at 1:53













            • worked like magic. :-)

              – THE INN-VISIBLE
              Feb 12 at 13:59
















            23














            Here's the solution:



            sudo npm install --save-dev  --unsafe-perm node-sass


            Enjoy!






            share|improve this answer



















            • 1





              This worked, but if someone could add to the answer on why this worked and the simple npm install node-sass did not work it would be instructive.

              – Michael Potter
              Jan 14 at 5:06






            • 1





              @MichaelPotter you downvoted my answer because you couldn't find why it works?

              – Alex Onozor
              Jan 14 at 8:06








            • 3





              Actually, I upvoted it because it worked, but I would like to know WHY it worked. Kind of a mystery. Kedar's solution did not work for me, but I did not downvote his. Your answer does not have any downvotes. To see downvotes click on the number.

              – Michael Potter
              Jan 14 at 15:54











            • @AlexOnozor HOW DOES THIS WORK?

              – Bahman.A
              Jan 17 at 1:53













            • worked like magic. :-)

              – THE INN-VISIBLE
              Feb 12 at 13:59














            23












            23








            23







            Here's the solution:



            sudo npm install --save-dev  --unsafe-perm node-sass


            Enjoy!






            share|improve this answer













            Here's the solution:



            sudo npm install --save-dev  --unsafe-perm node-sass


            Enjoy!







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 30 '18 at 19:08









            Alex OnozorAlex Onozor

            732722




            732722








            • 1





              This worked, but if someone could add to the answer on why this worked and the simple npm install node-sass did not work it would be instructive.

              – Michael Potter
              Jan 14 at 5:06






            • 1





              @MichaelPotter you downvoted my answer because you couldn't find why it works?

              – Alex Onozor
              Jan 14 at 8:06








            • 3





              Actually, I upvoted it because it worked, but I would like to know WHY it worked. Kind of a mystery. Kedar's solution did not work for me, but I did not downvote his. Your answer does not have any downvotes. To see downvotes click on the number.

              – Michael Potter
              Jan 14 at 15:54











            • @AlexOnozor HOW DOES THIS WORK?

              – Bahman.A
              Jan 17 at 1:53













            • worked like magic. :-)

              – THE INN-VISIBLE
              Feb 12 at 13:59














            • 1





              This worked, but if someone could add to the answer on why this worked and the simple npm install node-sass did not work it would be instructive.

              – Michael Potter
              Jan 14 at 5:06






            • 1





              @MichaelPotter you downvoted my answer because you couldn't find why it works?

              – Alex Onozor
              Jan 14 at 8:06








            • 3





              Actually, I upvoted it because it worked, but I would like to know WHY it worked. Kind of a mystery. Kedar's solution did not work for me, but I did not downvote his. Your answer does not have any downvotes. To see downvotes click on the number.

              – Michael Potter
              Jan 14 at 15:54











            • @AlexOnozor HOW DOES THIS WORK?

              – Bahman.A
              Jan 17 at 1:53













            • worked like magic. :-)

              – THE INN-VISIBLE
              Feb 12 at 13:59








            1




            1





            This worked, but if someone could add to the answer on why this worked and the simple npm install node-sass did not work it would be instructive.

            – Michael Potter
            Jan 14 at 5:06





            This worked, but if someone could add to the answer on why this worked and the simple npm install node-sass did not work it would be instructive.

            – Michael Potter
            Jan 14 at 5:06




            1




            1





            @MichaelPotter you downvoted my answer because you couldn't find why it works?

            – Alex Onozor
            Jan 14 at 8:06







            @MichaelPotter you downvoted my answer because you couldn't find why it works?

            – Alex Onozor
            Jan 14 at 8:06






            3




            3





            Actually, I upvoted it because it worked, but I would like to know WHY it worked. Kind of a mystery. Kedar's solution did not work for me, but I did not downvote his. Your answer does not have any downvotes. To see downvotes click on the number.

            – Michael Potter
            Jan 14 at 15:54





            Actually, I upvoted it because it worked, but I would like to know WHY it worked. Kind of a mystery. Kedar's solution did not work for me, but I did not downvote his. Your answer does not have any downvotes. To see downvotes click on the number.

            – Michael Potter
            Jan 14 at 15:54













            @AlexOnozor HOW DOES THIS WORK?

            – Bahman.A
            Jan 17 at 1:53







            @AlexOnozor HOW DOES THIS WORK?

            – Bahman.A
            Jan 17 at 1:53















            worked like magic. :-)

            – THE INN-VISIBLE
            Feb 12 at 13:59





            worked like magic. :-)

            – THE INN-VISIBLE
            Feb 12 at 13:59











            9














            Run:



            npm rebuild node-sass --force              


            and it'll work fine.






            share|improve this answer


























            • Doesn't work fine, sadly. For me (on windows) the problem remains.

              – mcv
              Nov 6 '18 at 15:24
















            9














            Run:



            npm rebuild node-sass --force              


            and it'll work fine.






            share|improve this answer


























            • Doesn't work fine, sadly. For me (on windows) the problem remains.

              – mcv
              Nov 6 '18 at 15:24














            9












            9








            9







            Run:



            npm rebuild node-sass --force              


            and it'll work fine.






            share|improve this answer















            Run:



            npm rebuild node-sass --force              


            and it'll work fine.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jun 5 '18 at 18:16









            Marco Altieri

            2,51212234




            2,51212234










            answered May 17 '18 at 2:38









            PENG ZHUPENG ZHU

            9714




            9714













            • Doesn't work fine, sadly. For me (on windows) the problem remains.

              – mcv
              Nov 6 '18 at 15:24



















            • Doesn't work fine, sadly. For me (on windows) the problem remains.

              – mcv
              Nov 6 '18 at 15:24

















            Doesn't work fine, sadly. For me (on windows) the problem remains.

            – mcv
            Nov 6 '18 at 15:24





            Doesn't work fine, sadly. For me (on windows) the problem remains.

            – mcv
            Nov 6 '18 at 15:24











            2














            There is an issue with downloading npm dependencies due to network which you have. try to download the npm dependencies in open network . you won't get any issue. i am also faced this similar issue and resolved finally.



            use below commands: npm install (it will download all depedencies)
            npm start to start the angular application






            share|improve this answer



















            • 1





              what do you mean by open network please?

              – Tiny Skillz
              Mar 1 '18 at 15:37











            • @TinySkillz i think he is mentioning no-proxy networks

              – Akhil S K
              Jul 23 '18 at 9:08


















            2














            There is an issue with downloading npm dependencies due to network which you have. try to download the npm dependencies in open network . you won't get any issue. i am also faced this similar issue and resolved finally.



            use below commands: npm install (it will download all depedencies)
            npm start to start the angular application






            share|improve this answer



















            • 1





              what do you mean by open network please?

              – Tiny Skillz
              Mar 1 '18 at 15:37











            • @TinySkillz i think he is mentioning no-proxy networks

              – Akhil S K
              Jul 23 '18 at 9:08
















            2












            2








            2







            There is an issue with downloading npm dependencies due to network which you have. try to download the npm dependencies in open network . you won't get any issue. i am also faced this similar issue and resolved finally.



            use below commands: npm install (it will download all depedencies)
            npm start to start the angular application






            share|improve this answer













            There is an issue with downloading npm dependencies due to network which you have. try to download the npm dependencies in open network . you won't get any issue. i am also faced this similar issue and resolved finally.



            use below commands: npm install (it will download all depedencies)
            npm start to start the angular application







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 7 '18 at 10:03









            Ravi MarojuRavi Maroju

            36239




            36239








            • 1





              what do you mean by open network please?

              – Tiny Skillz
              Mar 1 '18 at 15:37











            • @TinySkillz i think he is mentioning no-proxy networks

              – Akhil S K
              Jul 23 '18 at 9:08
















            • 1





              what do you mean by open network please?

              – Tiny Skillz
              Mar 1 '18 at 15:37











            • @TinySkillz i think he is mentioning no-proxy networks

              – Akhil S K
              Jul 23 '18 at 9:08










            1




            1





            what do you mean by open network please?

            – Tiny Skillz
            Mar 1 '18 at 15:37





            what do you mean by open network please?

            – Tiny Skillz
            Mar 1 '18 at 15:37













            @TinySkillz i think he is mentioning no-proxy networks

            – Akhil S K
            Jul 23 '18 at 9:08







            @TinySkillz i think he is mentioning no-proxy networks

            – Akhil S K
            Jul 23 '18 at 9:08













            2














            It worked for me...



            sudo npm rebuild node-sass --force





            share|improve this answer



















            • 1





              Give some explanation so that it would be easy to understand the solution

              – Harsha B
              Oct 3 '18 at 9:14
















            2














            It worked for me...



            sudo npm rebuild node-sass --force





            share|improve this answer



















            • 1





              Give some explanation so that it would be easy to understand the solution

              – Harsha B
              Oct 3 '18 at 9:14














            2












            2








            2







            It worked for me...



            sudo npm rebuild node-sass --force





            share|improve this answer













            It worked for me...



            sudo npm rebuild node-sass --force






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 3 '18 at 8:06









            Vibhu kumarVibhu kumar

            865




            865








            • 1





              Give some explanation so that it would be easy to understand the solution

              – Harsha B
              Oct 3 '18 at 9:14














            • 1





              Give some explanation so that it would be easy to understand the solution

              – Harsha B
              Oct 3 '18 at 9:14








            1




            1





            Give some explanation so that it would be easy to understand the solution

            – Harsha B
            Oct 3 '18 at 9:14





            Give some explanation so that it would be easy to understand the solution

            – Harsha B
            Oct 3 '18 at 9:14











            1














            One of the cases is the post-install process fails. Right after node-sass is installed, the post-install script will be executed. It requires Python and a C++ builder for that process.
            The log 'gyp: No Xcode or CLT version detected!' maybe because it couldn't find any C++ builder. So try installing Python and any C++ builder then put their directories in environment variables so that npm can find them. (I come from Windows)






            share|improve this answer




























              1














              One of the cases is the post-install process fails. Right after node-sass is installed, the post-install script will be executed. It requires Python and a C++ builder for that process.
              The log 'gyp: No Xcode or CLT version detected!' maybe because it couldn't find any C++ builder. So try installing Python and any C++ builder then put their directories in environment variables so that npm can find them. (I come from Windows)






              share|improve this answer


























                1












                1








                1







                One of the cases is the post-install process fails. Right after node-sass is installed, the post-install script will be executed. It requires Python and a C++ builder for that process.
                The log 'gyp: No Xcode or CLT version detected!' maybe because it couldn't find any C++ builder. So try installing Python and any C++ builder then put their directories in environment variables so that npm can find them. (I come from Windows)






                share|improve this answer













                One of the cases is the post-install process fails. Right after node-sass is installed, the post-install script will be executed. It requires Python and a C++ builder for that process.
                The log 'gyp: No Xcode or CLT version detected!' maybe because it couldn't find any C++ builder. So try installing Python and any C++ builder then put their directories in environment variables so that npm can find them. (I come from Windows)







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 4 '18 at 2:41









                Van HungVan Hung

                11415




                11415























                    0














                    If you run



                    npm install node-sass


                    and it still doesn't work remember to change permission to folder






                    share|improve this answer






























                      0














                      If you run



                      npm install node-sass


                      and it still doesn't work remember to change permission to folder






                      share|improve this answer




























                        0












                        0








                        0







                        If you run



                        npm install node-sass


                        and it still doesn't work remember to change permission to folder






                        share|improve this answer















                        If you run



                        npm install node-sass


                        and it still doesn't work remember to change permission to folder







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Oct 16 '18 at 8:50

























                        answered Oct 13 '18 at 7:03









                        Claudio AlbertiClaudio Alberti

                        112




                        112























                            0














                            I checked my local machine Node version which is v10.11.0



                            Then when I check my development machine which has a Node version of V.10.8.0



                            The error occurred.





                            what I did to fix the error is that.



                            In my development machine I change the version of Node which is v10.11.0 same in my local machine.



                            Hope this helps.






                            share|improve this answer




























                              0














                              I checked my local machine Node version which is v10.11.0



                              Then when I check my development machine which has a Node version of V.10.8.0



                              The error occurred.





                              what I did to fix the error is that.



                              In my development machine I change the version of Node which is v10.11.0 same in my local machine.



                              Hope this helps.






                              share|improve this answer


























                                0












                                0








                                0







                                I checked my local machine Node version which is v10.11.0



                                Then when I check my development machine which has a Node version of V.10.8.0



                                The error occurred.





                                what I did to fix the error is that.



                                In my development machine I change the version of Node which is v10.11.0 same in my local machine.



                                Hope this helps.






                                share|improve this answer













                                I checked my local machine Node version which is v10.11.0



                                Then when I check my development machine which has a Node version of V.10.8.0



                                The error occurred.





                                what I did to fix the error is that.



                                In my development machine I change the version of Node which is v10.11.0 same in my local machine.



                                Hope this helps.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Nov 20 '18 at 3:04









                                davecar21davecar21

                                1,388721




                                1,388721























                                    0














                                    npm install node-sass will do the job in most of the cases, as it will add missing sass npm dependency module doesn't exist or it will overwrite previous crashed version.



                                    For Mac Users use sudo in front of above commands.



                                    On Windows machines npm rebuild node-sass --force may not work for some users because it's essentially saying, "please force npm to rebuild the sass node module for me". It will not work because that module doesn't exist.



                                    Whenever you did npm install to the initial installation, the sass module did not get installed, which is why this problem occurs.






                                    share|improve this answer






























                                      0














                                      npm install node-sass will do the job in most of the cases, as it will add missing sass npm dependency module doesn't exist or it will overwrite previous crashed version.



                                      For Mac Users use sudo in front of above commands.



                                      On Windows machines npm rebuild node-sass --force may not work for some users because it's essentially saying, "please force npm to rebuild the sass node module for me". It will not work because that module doesn't exist.



                                      Whenever you did npm install to the initial installation, the sass module did not get installed, which is why this problem occurs.






                                      share|improve this answer




























                                        0












                                        0








                                        0







                                        npm install node-sass will do the job in most of the cases, as it will add missing sass npm dependency module doesn't exist or it will overwrite previous crashed version.



                                        For Mac Users use sudo in front of above commands.



                                        On Windows machines npm rebuild node-sass --force may not work for some users because it's essentially saying, "please force npm to rebuild the sass node module for me". It will not work because that module doesn't exist.



                                        Whenever you did npm install to the initial installation, the sass module did not get installed, which is why this problem occurs.






                                        share|improve this answer















                                        npm install node-sass will do the job in most of the cases, as it will add missing sass npm dependency module doesn't exist or it will overwrite previous crashed version.



                                        For Mac Users use sudo in front of above commands.



                                        On Windows machines npm rebuild node-sass --force may not work for some users because it's essentially saying, "please force npm to rebuild the sass node module for me". It will not work because that module doesn't exist.



                                        Whenever you did npm install to the initial installation, the sass module did not get installed, which is why this problem occurs.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Feb 15 at 7:07

























                                        answered Jan 29 at 1:28









                                        surendrapandaysurendrapanday

                                        356




                                        356























                                            0














                                            I have also been facing this error. None of the above methods work for me. Please follow this as it worked for me.



                                            For Installing node-sass in Ubuntu 16 via npm :-



                                            You can install with npm 5.2.0 Version



                                            If you are using nvm :-




                                            nvm install 8.2.1
                                            nvm use 8.2.1
                                            npm install node-sass


                                            If you are using npm separately then upgrade or downgrade npm version to 5.2.0




                                            npm install node-sass





                                            share|improve this answer






























                                              0














                                              I have also been facing this error. None of the above methods work for me. Please follow this as it worked for me.



                                              For Installing node-sass in Ubuntu 16 via npm :-



                                              You can install with npm 5.2.0 Version



                                              If you are using nvm :-




                                              nvm install 8.2.1
                                              nvm use 8.2.1
                                              npm install node-sass


                                              If you are using npm separately then upgrade or downgrade npm version to 5.2.0




                                              npm install node-sass





                                              share|improve this answer




























                                                0












                                                0








                                                0







                                                I have also been facing this error. None of the above methods work for me. Please follow this as it worked for me.



                                                For Installing node-sass in Ubuntu 16 via npm :-



                                                You can install with npm 5.2.0 Version



                                                If you are using nvm :-




                                                nvm install 8.2.1
                                                nvm use 8.2.1
                                                npm install node-sass


                                                If you are using npm separately then upgrade or downgrade npm version to 5.2.0




                                                npm install node-sass





                                                share|improve this answer















                                                I have also been facing this error. None of the above methods work for me. Please follow this as it worked for me.



                                                For Installing node-sass in Ubuntu 16 via npm :-



                                                You can install with npm 5.2.0 Version



                                                If you are using nvm :-




                                                nvm install 8.2.1
                                                nvm use 8.2.1
                                                npm install node-sass


                                                If you are using npm separately then upgrade or downgrade npm version to 5.2.0




                                                npm install node-sass






                                                share|improve this answer














                                                share|improve this answer



                                                share|improve this answer








                                                edited 6 hours ago









                                                Dale Burrell

                                                3,23032552




                                                3,23032552










                                                answered Oct 25 '18 at 6:26









                                                Paras AgarwalParas Agarwal

                                                166




                                                166























                                                    -5














                                                    What fixed it for me was installing the latest version of node-sass, in this case 4.7.2.






                                                    share|improve this answer



















                                                    • 6





                                                      Install how? In the project or global?

                                                      – lealceldeiro
                                                      Apr 6 '18 at 13:29
















                                                    -5














                                                    What fixed it for me was installing the latest version of node-sass, in this case 4.7.2.






                                                    share|improve this answer



















                                                    • 6





                                                      Install how? In the project or global?

                                                      – lealceldeiro
                                                      Apr 6 '18 at 13:29














                                                    -5












                                                    -5








                                                    -5







                                                    What fixed it for me was installing the latest version of node-sass, in this case 4.7.2.






                                                    share|improve this answer













                                                    What fixed it for me was installing the latest version of node-sass, in this case 4.7.2.







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Jan 8 '18 at 12:10









                                                    bier hierbier hier

                                                    2,592103373




                                                    2,592103373








                                                    • 6





                                                      Install how? In the project or global?

                                                      – lealceldeiro
                                                      Apr 6 '18 at 13:29














                                                    • 6





                                                      Install how? In the project or global?

                                                      – lealceldeiro
                                                      Apr 6 '18 at 13:29








                                                    6




                                                    6





                                                    Install how? In the project or global?

                                                    – lealceldeiro
                                                    Apr 6 '18 at 13:29





                                                    Install how? In the project or global?

                                                    – lealceldeiro
                                                    Apr 6 '18 at 13:29


















                                                    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%2f48147896%2ferror-in-cannot-find-module-node-sass%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

                                                    Guess what letter conforming each word

                                                    Port of Spain

                                                    Run scheduled task as local user group (not BUILTIN)