npm issue while trying to npm install dependences on ubantu 16.02

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite
1












pkcs11js@1.0.16 install /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js
> node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js/build'
gyp ERR! System Linux 4.4.0-1060-aws
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js
gyp ERR! node -v v8.11.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pkcs11js@1.0.16 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pkcs11js@1.0.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2018-06-12T07_38_09_022Z-debug.log


  1. i am using node version
    8.11.2


  2. i am using npm version
    5.6.0


  3. i used sudo when typing npm install


  4. i unistalled completly and installed again by using following
    commands


  5. sudo apt-get remove nodejs


  6. sudo apt-get remove npm


  7. i cleared the cache and restarted the instance







share|improve this question























    up vote
    1
    down vote

    favorite
    1












    pkcs11js@1.0.16 install /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js
    > node-gyp rebuild

    gyp ERR! configure error
    gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js/build'
    gyp ERR! System Linux 4.4.0-1060-aws
    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js
    gyp ERR! node -v v8.11.2
    gyp ERR! node-gyp -v v3.6.2
    gyp ERR! not ok
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! pkcs11js@1.0.16 install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the pkcs11js@1.0.16 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /home/ubuntu/.npm/_logs/2018-06-12T07_38_09_022Z-debug.log


    1. i am using node version
      8.11.2


    2. i am using npm version
      5.6.0


    3. i used sudo when typing npm install


    4. i unistalled completly and installed again by using following
      commands


    5. sudo apt-get remove nodejs


    6. sudo apt-get remove npm


    7. i cleared the cache and restarted the instance







    share|improve this question





















      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      pkcs11js@1.0.16 install /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js
      > node-gyp rebuild

      gyp ERR! configure error
      gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js/build'
      gyp ERR! System Linux 4.4.0-1060-aws
      gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js
      gyp ERR! node -v v8.11.2
      gyp ERR! node-gyp -v v3.6.2
      gyp ERR! not ok
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! pkcs11js@1.0.16 install: `node-gyp rebuild`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the pkcs11js@1.0.16 install script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

      npm ERR! A complete log of this run can be found in:
      npm ERR! /home/ubuntu/.npm/_logs/2018-06-12T07_38_09_022Z-debug.log


      1. i am using node version
        8.11.2


      2. i am using npm version
        5.6.0


      3. i used sudo when typing npm install


      4. i unistalled completly and installed again by using following
        commands


      5. sudo apt-get remove nodejs


      6. sudo apt-get remove npm


      7. i cleared the cache and restarted the instance







      share|improve this question











      pkcs11js@1.0.16 install /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js
      > node-gyp rebuild

      gyp ERR! configure error
      gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js/build'
      gyp ERR! System Linux 4.4.0-1060-aws
      gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js
      gyp ERR! node -v v8.11.2
      gyp ERR! node-gyp -v v3.6.2
      gyp ERR! not ok
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! pkcs11js@1.0.16 install: `node-gyp rebuild`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the pkcs11js@1.0.16 install script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

      npm ERR! A complete log of this run can be found in:
      npm ERR! /home/ubuntu/.npm/_logs/2018-06-12T07_38_09_022Z-debug.log


      1. i am using node version
        8.11.2


      2. i am using npm version
        5.6.0


      3. i used sudo when typing npm install


      4. i unistalled completly and installed again by using following
        commands


      5. sudo apt-get remove nodejs


      6. sudo apt-get remove npm


      7. i cleared the cache and restarted the instance









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 12 at 7:44









      Venkatesh Muthyala

      62




      62




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          I had the same problem.



          Solved by installing gyp: pip install git+https://chromium.googlesource.com/external/gyp --user






          share|improve this answer























            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045822%2fnpm-issue-while-trying-to-npm-install-dependences-on-ubantu-16-02%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            I had the same problem.



            Solved by installing gyp: pip install git+https://chromium.googlesource.com/external/gyp --user






            share|improve this answer



























              up vote
              1
              down vote













              I had the same problem.



              Solved by installing gyp: pip install git+https://chromium.googlesource.com/external/gyp --user






              share|improve this answer

























                up vote
                1
                down vote










                up vote
                1
                down vote









                I had the same problem.



                Solved by installing gyp: pip install git+https://chromium.googlesource.com/external/gyp --user






                share|improve this answer















                I had the same problem.



                Solved by installing gyp: pip install git+https://chromium.googlesource.com/external/gyp --user







                share|improve this answer















                share|improve this answer



                share|improve this answer








                edited Jun 13 at 13:31


























                answered Jun 13 at 13:18









                Jonathan Chevalier

                112




                112






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045822%2fnpm-issue-while-trying-to-npm-install-dependences-on-ubantu-16-02%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error

                    How do I move numbers in filenames, in a batch renaming operation?