foundation for emails can't create new project with npm error











up vote
0
down vote

favorite












I'm new to foundation and trying to start foundation for emails sass version. I installed foundation-cli by npm globally with this version:




Foundation CLI version 2.2.5




Then I cd to an empty folder and try start a tester project by the following command




foundation new --framework emails




The project setup failed:




Downloading the project template... Done downloading!



Installing dependencies...



npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0':
unknown revision or path not in the working tree. npm ERR! git
rev-list -n1 4.0: Use '--' to separate paths from revisions, like
this: npm ERR! git rev-list -n1 4.0: 'git [...] --
[...]' npm ERR! git rev-list -n1 4.0:



There were some problems during the installation.



✓ New project folder created. ✗ Node modules not installed. Try
running npm install manually. ✓ Bower components installed.




so I cd to the newly created project folder and npm install. It still failed.




npm ERR! code 1 npm ERR! Command failed: /usr/bin/git checkout 4.0 npm
ERR! error: pathspec '4.0' did not match any file(s) known to git. npm




Can anyone give me a hint how to resolve it??










share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm new to foundation and trying to start foundation for emails sass version. I installed foundation-cli by npm globally with this version:




    Foundation CLI version 2.2.5




    Then I cd to an empty folder and try start a tester project by the following command




    foundation new --framework emails




    The project setup failed:




    Downloading the project template... Done downloading!



    Installing dependencies...



    npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0':
    unknown revision or path not in the working tree. npm ERR! git
    rev-list -n1 4.0: Use '--' to separate paths from revisions, like
    this: npm ERR! git rev-list -n1 4.0: 'git [...] --
    [...]' npm ERR! git rev-list -n1 4.0:



    There were some problems during the installation.



    ✓ New project folder created. ✗ Node modules not installed. Try
    running npm install manually. ✓ Bower components installed.




    so I cd to the newly created project folder and npm install. It still failed.




    npm ERR! code 1 npm ERR! Command failed: /usr/bin/git checkout 4.0 npm
    ERR! error: pathspec '4.0' did not match any file(s) known to git. npm




    Can anyone give me a hint how to resolve it??










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm new to foundation and trying to start foundation for emails sass version. I installed foundation-cli by npm globally with this version:




      Foundation CLI version 2.2.5




      Then I cd to an empty folder and try start a tester project by the following command




      foundation new --framework emails




      The project setup failed:




      Downloading the project template... Done downloading!



      Installing dependencies...



      npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0':
      unknown revision or path not in the working tree. npm ERR! git
      rev-list -n1 4.0: Use '--' to separate paths from revisions, like
      this: npm ERR! git rev-list -n1 4.0: 'git [...] --
      [...]' npm ERR! git rev-list -n1 4.0:



      There were some problems during the installation.



      ✓ New project folder created. ✗ Node modules not installed. Try
      running npm install manually. ✓ Bower components installed.




      so I cd to the newly created project folder and npm install. It still failed.




      npm ERR! code 1 npm ERR! Command failed: /usr/bin/git checkout 4.0 npm
      ERR! error: pathspec '4.0' did not match any file(s) known to git. npm




      Can anyone give me a hint how to resolve it??










      share|improve this question













      I'm new to foundation and trying to start foundation for emails sass version. I installed foundation-cli by npm globally with this version:




      Foundation CLI version 2.2.5




      Then I cd to an empty folder and try start a tester project by the following command




      foundation new --framework emails




      The project setup failed:




      Downloading the project template... Done downloading!



      Installing dependencies...



      npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0':
      unknown revision or path not in the working tree. npm ERR! git
      rev-list -n1 4.0: Use '--' to separate paths from revisions, like
      this: npm ERR! git rev-list -n1 4.0: 'git [...] --
      [...]' npm ERR! git rev-list -n1 4.0:



      There were some problems during the installation.



      ✓ New project folder created. ✗ Node modules not installed. Try
      running npm install manually. ✓ Bower components installed.




      so I cd to the newly created project folder and npm install. It still failed.




      npm ERR! code 1 npm ERR! Command failed: /usr/bin/git checkout 4.0 npm
      ERR! error: pathspec '4.0' did not match any file(s) known to git. npm




      Can anyone give me a hint how to resolve it??







      npm zurb-foundation






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 11 at 4:39









      rollerCoaster

      11




      11
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          I had the same error.



          First install gulp manually following these steps
          https://gulpjs.org/getting-started.html.



          Then if you get an error saying VCBuildtools arent't installed. Install them via



          choco install vcbuildtools


          After that it should work.






          share|improve this answer





















          • Thanks! I found it's the gulp problem as well. install it separately and it worked.
            – rollerCoaster
            Nov 16 at 20:57










          • Glad I could help.
            – Gucksen
            Nov 19 at 8:42


















          up vote
          0
          down vote













          The problem is that there was once an 4.0 tag for Gulp but it was deleted. Just run npm i gulp@next --save-dev or npm i gulp@4.0.0 --save-dev.



          It was fixed in https://github.com/zurb/foundation-zurb-template/commit/a4472d7fc2409b43bbdc4df4dead7eb5e8e0e691 (see the change in package.json).






          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',
            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%2f53245899%2ffoundation-for-emails-cant-create-new-project-with-npm-error%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I had the same error.



            First install gulp manually following these steps
            https://gulpjs.org/getting-started.html.



            Then if you get an error saying VCBuildtools arent't installed. Install them via



            choco install vcbuildtools


            After that it should work.






            share|improve this answer





















            • Thanks! I found it's the gulp problem as well. install it separately and it worked.
              – rollerCoaster
              Nov 16 at 20:57










            • Glad I could help.
              – Gucksen
              Nov 19 at 8:42















            up vote
            0
            down vote













            I had the same error.



            First install gulp manually following these steps
            https://gulpjs.org/getting-started.html.



            Then if you get an error saying VCBuildtools arent't installed. Install them via



            choco install vcbuildtools


            After that it should work.






            share|improve this answer





















            • Thanks! I found it's the gulp problem as well. install it separately and it worked.
              – rollerCoaster
              Nov 16 at 20:57










            • Glad I could help.
              – Gucksen
              Nov 19 at 8:42













            up vote
            0
            down vote










            up vote
            0
            down vote









            I had the same error.



            First install gulp manually following these steps
            https://gulpjs.org/getting-started.html.



            Then if you get an error saying VCBuildtools arent't installed. Install them via



            choco install vcbuildtools


            After that it should work.






            share|improve this answer












            I had the same error.



            First install gulp manually following these steps
            https://gulpjs.org/getting-started.html.



            Then if you get an error saying VCBuildtools arent't installed. Install them via



            choco install vcbuildtools


            After that it should work.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 16 at 17:28









            Gucksen

            63




            63












            • Thanks! I found it's the gulp problem as well. install it separately and it worked.
              – rollerCoaster
              Nov 16 at 20:57










            • Glad I could help.
              – Gucksen
              Nov 19 at 8:42


















            • Thanks! I found it's the gulp problem as well. install it separately and it worked.
              – rollerCoaster
              Nov 16 at 20:57










            • Glad I could help.
              – Gucksen
              Nov 19 at 8:42
















            Thanks! I found it's the gulp problem as well. install it separately and it worked.
            – rollerCoaster
            Nov 16 at 20:57




            Thanks! I found it's the gulp problem as well. install it separately and it worked.
            – rollerCoaster
            Nov 16 at 20:57












            Glad I could help.
            – Gucksen
            Nov 19 at 8:42




            Glad I could help.
            – Gucksen
            Nov 19 at 8:42












            up vote
            0
            down vote













            The problem is that there was once an 4.0 tag for Gulp but it was deleted. Just run npm i gulp@next --save-dev or npm i gulp@4.0.0 --save-dev.



            It was fixed in https://github.com/zurb/foundation-zurb-template/commit/a4472d7fc2409b43bbdc4df4dead7eb5e8e0e691 (see the change in package.json).






            share|improve this answer

























              up vote
              0
              down vote













              The problem is that there was once an 4.0 tag for Gulp but it was deleted. Just run npm i gulp@next --save-dev or npm i gulp@4.0.0 --save-dev.



              It was fixed in https://github.com/zurb/foundation-zurb-template/commit/a4472d7fc2409b43bbdc4df4dead7eb5e8e0e691 (see the change in package.json).






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                The problem is that there was once an 4.0 tag for Gulp but it was deleted. Just run npm i gulp@next --save-dev or npm i gulp@4.0.0 --save-dev.



                It was fixed in https://github.com/zurb/foundation-zurb-template/commit/a4472d7fc2409b43bbdc4df4dead7eb5e8e0e691 (see the change in package.json).






                share|improve this answer












                The problem is that there was once an 4.0 tag for Gulp but it was deleted. Just run npm i gulp@next --save-dev or npm i gulp@4.0.0 --save-dev.



                It was fixed in https://github.com/zurb/foundation-zurb-template/commit/a4472d7fc2409b43bbdc4df4dead7eb5e8e0e691 (see the change in package.json).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 21 at 16:31









                Daniel Ruf

                4,15373691




                4,15373691






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f53245899%2ffoundation-for-emails-cant-create-new-project-with-npm-error%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)