Unable to add serialport (nodejs module) when generating filesystem and cross-compiling tools for an ARM processorEmbedded Linux- Cross compiling firefox for arm

Applicability of Single Responsibility Principle

Method to test if a number is a perfect power?

System.debug(JSON.Serialize(o)) Not longer shows full string

Purchasing a ticket for someone else in another country?

What does the word "Atten" mean?

Pre-amplifier input protection

Would a high gravity rocky planet be guaranteed to have an atmosphere?

Gears on left are inverse to gears on right?

Two monoidal structures and copowering

How to write papers efficiently when English isn't my first language?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

Failed to fetch jessie backports repository

Class Action - which options I have?

Lay out the Carpet

Trouble understanding the speech of overseas colleagues

How does the UK government determine the size of a mandate?

Is there a problem with hiding "forgot password" until it's needed?

How does buying out courses with grant money work?

What is the intuitive meaning of having a linear relationship between the logs of two variables?

Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?

Large drywall patch supports

Is this apparent Class Action settlement a spam message?



Unable to add serialport (nodejs module) when generating filesystem and cross-compiling tools for an ARM processor


Embedded Linux- Cross compiling firefox for arm













1















I am using buildroot (version 2013.08.1) to generate the filesystem and cross compiling tools to implement embedded linux on a i.MX233 processor (ARM architecture). I add the serialport module by running make menuconfig and then selecting:



Target Package --> 
Interpreter languages and scripting -->
[*]nodejs
[*] NPM for the target
[*] Express web application framework
[*] CoffeeScript
(socket.io jade serialport) Additional modules


When running the Makefile, I get the following output regarding the serialport module:



node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
node-pre-gyp http 200 https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack Error: EPERM, chmod '/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/build/serialport/v1.4.0/Release/v8-3.11-linux-x64/serialport.node'
node-pre-gyp ERR! System Linux 3.13.0-24-generic
node-pre-gyp ERR! command "node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport
node-pre-gyp ERR! node -v v0.8.22
node-pre-gyp ERR! node-pre-gyp -v v0.5.19
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR! <https://github.com/mapbox/node-pre-gyp/issues>
npm ERR! serialport@1.4.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! `sh "-c" "node-pre-gyp install --fallback-to-build"` failed with 7
npm ERR!
npm ERR! Failed at the serialport@1.4.0 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/npm" "install" "express" "coffee-script" "socket.io" "jade" "serialport"
npm ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/npm-debug.log
npm ERR! not ok code 0
make: *** [/media/d/Documents/b-tesis/buildroot-2013.08.1/output/build/nodejs-0.8.22/.stamp_target_installed] Error 1


I have tried installing a different node version using nvm, but it does not work. I have not found any different solutions on Google.



I am doing this process in a machine with Ubuntu 14.04 and kernel version 3.13.0-24-generic.



I would appreciate any help with this issue.










share|improve this question
















bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    1















    I am using buildroot (version 2013.08.1) to generate the filesystem and cross compiling tools to implement embedded linux on a i.MX233 processor (ARM architecture). I add the serialport module by running make menuconfig and then selecting:



    Target Package --> 
    Interpreter languages and scripting -->
    [*]nodejs
    [*] NPM for the target
    [*] Express web application framework
    [*] CoffeeScript
    (socket.io jade serialport) Additional modules


    When running the Makefile, I get the following output regarding the serialport module:



    node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
    node-pre-gyp http 200 https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
    node-pre-gyp ERR! UNCAUGHT EXCEPTION
    node-pre-gyp ERR! stack Error: EPERM, chmod '/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/build/serialport/v1.4.0/Release/v8-3.11-linux-x64/serialport.node'
    node-pre-gyp ERR! System Linux 3.13.0-24-generic
    node-pre-gyp ERR! command "node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
    node-pre-gyp ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport
    node-pre-gyp ERR! node -v v0.8.22
    node-pre-gyp ERR! node-pre-gyp -v v0.5.19
    node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
    node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
    node-pre-gyp ERR! <https://github.com/mapbox/node-pre-gyp/issues>
    npm ERR! serialport@1.4.0 install: `node-pre-gyp install --fallback-to-build`
    npm ERR! `sh "-c" "node-pre-gyp install --fallback-to-build"` failed with 7
    npm ERR!
    npm ERR! Failed at the serialport@1.4.0 install script.
    npm ERR! This is most likely a problem with the serialport package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR! node-pre-gyp install --fallback-to-build
    npm ERR! You can get their info via:
    npm ERR! npm owner ls serialport
    npm ERR! There is likely additional logging output above.

    npm ERR! System Linux 3.13.0-24-generic
    npm ERR! command "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/npm" "install" "express" "coffee-script" "socket.io" "jade" "serialport"
    npm ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib
    npm ERR! node -v v0.8.22
    npm ERR! npm -v 1.2.14
    npm ERR! code ELIFECYCLE
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR! /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/npm-debug.log
    npm ERR! not ok code 0
    make: *** [/media/d/Documents/b-tesis/buildroot-2013.08.1/output/build/nodejs-0.8.22/.stamp_target_installed] Error 1


    I have tried installing a different node version using nvm, but it does not work. I have not found any different solutions on Google.



    I am doing this process in a machine with Ubuntu 14.04 and kernel version 3.13.0-24-generic.



    I would appreciate any help with this issue.










    share|improve this question
















    bumped to the homepage by Community yesterday


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      1












      1








      1


      0






      I am using buildroot (version 2013.08.1) to generate the filesystem and cross compiling tools to implement embedded linux on a i.MX233 processor (ARM architecture). I add the serialport module by running make menuconfig and then selecting:



      Target Package --> 
      Interpreter languages and scripting -->
      [*]nodejs
      [*] NPM for the target
      [*] Express web application framework
      [*] CoffeeScript
      (socket.io jade serialport) Additional modules


      When running the Makefile, I get the following output regarding the serialport module:



      node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
      node-pre-gyp http 200 https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
      node-pre-gyp ERR! UNCAUGHT EXCEPTION
      node-pre-gyp ERR! stack Error: EPERM, chmod '/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/build/serialport/v1.4.0/Release/v8-3.11-linux-x64/serialport.node'
      node-pre-gyp ERR! System Linux 3.13.0-24-generic
      node-pre-gyp ERR! command "node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
      node-pre-gyp ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport
      node-pre-gyp ERR! node -v v0.8.22
      node-pre-gyp ERR! node-pre-gyp -v v0.5.19
      node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
      node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
      node-pre-gyp ERR! <https://github.com/mapbox/node-pre-gyp/issues>
      npm ERR! serialport@1.4.0 install: `node-pre-gyp install --fallback-to-build`
      npm ERR! `sh "-c" "node-pre-gyp install --fallback-to-build"` failed with 7
      npm ERR!
      npm ERR! Failed at the serialport@1.4.0 install script.
      npm ERR! This is most likely a problem with the serialport package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR! node-pre-gyp install --fallback-to-build
      npm ERR! You can get their info via:
      npm ERR! npm owner ls serialport
      npm ERR! There is likely additional logging output above.

      npm ERR! System Linux 3.13.0-24-generic
      npm ERR! command "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/npm" "install" "express" "coffee-script" "socket.io" "jade" "serialport"
      npm ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib
      npm ERR! node -v v0.8.22
      npm ERR! npm -v 1.2.14
      npm ERR! code ELIFECYCLE
      npm ERR!
      npm ERR! Additional logging details can be found in:
      npm ERR! /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/npm-debug.log
      npm ERR! not ok code 0
      make: *** [/media/d/Documents/b-tesis/buildroot-2013.08.1/output/build/nodejs-0.8.22/.stamp_target_installed] Error 1


      I have tried installing a different node version using nvm, but it does not work. I have not found any different solutions on Google.



      I am doing this process in a machine with Ubuntu 14.04 and kernel version 3.13.0-24-generic.



      I would appreciate any help with this issue.










      share|improve this question
















      I am using buildroot (version 2013.08.1) to generate the filesystem and cross compiling tools to implement embedded linux on a i.MX233 processor (ARM architecture). I add the serialport module by running make menuconfig and then selecting:



      Target Package --> 
      Interpreter languages and scripting -->
      [*]nodejs
      [*] NPM for the target
      [*] Express web application framework
      [*] CoffeeScript
      (socket.io jade serialport) Additional modules


      When running the Makefile, I get the following output regarding the serialport module:



      node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
      node-pre-gyp http 200 https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.11-linux-x64.tar.gz
      node-pre-gyp ERR! UNCAUGHT EXCEPTION
      node-pre-gyp ERR! stack Error: EPERM, chmod '/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/build/serialport/v1.4.0/Release/v8-3.11-linux-x64/serialport.node'
      node-pre-gyp ERR! System Linux 3.13.0-24-generic
      node-pre-gyp ERR! command "node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
      node-pre-gyp ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/node_modules/serialport
      node-pre-gyp ERR! node -v v0.8.22
      node-pre-gyp ERR! node-pre-gyp -v v0.5.19
      node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
      node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
      node-pre-gyp ERR! <https://github.com/mapbox/node-pre-gyp/issues>
      npm ERR! serialport@1.4.0 install: `node-pre-gyp install --fallback-to-build`
      npm ERR! `sh "-c" "node-pre-gyp install --fallback-to-build"` failed with 7
      npm ERR!
      npm ERR! Failed at the serialport@1.4.0 install script.
      npm ERR! This is most likely a problem with the serialport package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR! node-pre-gyp install --fallback-to-build
      npm ERR! You can get their info via:
      npm ERR! npm owner ls serialport
      npm ERR! There is likely additional logging output above.

      npm ERR! System Linux 3.13.0-24-generic
      npm ERR! command "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/node" "/media/d/Documents/b-tesis/buildroot-2013.08.1/output/host/usr/bin/npm" "install" "express" "coffee-script" "socket.io" "jade" "serialport"
      npm ERR! cwd /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib
      npm ERR! node -v v0.8.22
      npm ERR! npm -v 1.2.14
      npm ERR! code ELIFECYCLE
      npm ERR!
      npm ERR! Additional logging details can be found in:
      npm ERR! /media/d/Documents/b-tesis/buildroot-2013.08.1/output/target/usr/lib/npm-debug.log
      npm ERR! not ok code 0
      make: *** [/media/d/Documents/b-tesis/buildroot-2013.08.1/output/build/nodejs-0.8.22/.stamp_target_installed] Error 1


      I have tried installing a different node version using nvm, but it does not work. I have not found any different solutions on Google.



      I am doing this process in a machine with Ubuntu 14.04 and kernel version 3.13.0-24-generic.



      I would appreciate any help with this issue.







      embedded buildroot






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 1 '14 at 12:28









      polym

      6,81653158




      6,81653158










      asked Jul 1 '14 at 0:09









      NicolásNicolás

      1063




      1063





      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?






          share|improve this answer






























            0














            You need to have root permissions to install these native modules like serialport.



            Go into /buildroot/package/nodejs/nodejs.mk and change



            $(NPM) install -g $(NODEJS_MODULES_LIST)


            to



            $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)





            share|improve this answer






















              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              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: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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%2funix.stackexchange.com%2fquestions%2f140063%2funable-to-add-serialport-nodejs-module-when-generating-filesystem-and-cross-co%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









              0














              Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?






              share|improve this answer



























                0














                Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?






                share|improve this answer

























                  0












                  0








                  0







                  Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?






                  share|improve this answer













                  Could you report this bug to the Buildroot bug tracker, at https://bugs.busybox.net?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 14 '14 at 8:58









                  Thomas PetazzoniThomas Petazzoni

                  29814




                  29814























                      0














                      You need to have root permissions to install these native modules like serialport.



                      Go into /buildroot/package/nodejs/nodejs.mk and change



                      $(NPM) install -g $(NODEJS_MODULES_LIST)


                      to



                      $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)





                      share|improve this answer



























                        0














                        You need to have root permissions to install these native modules like serialport.



                        Go into /buildroot/package/nodejs/nodejs.mk and change



                        $(NPM) install -g $(NODEJS_MODULES_LIST)


                        to



                        $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)





                        share|improve this answer

























                          0












                          0








                          0







                          You need to have root permissions to install these native modules like serialport.



                          Go into /buildroot/package/nodejs/nodejs.mk and change



                          $(NPM) install -g $(NODEJS_MODULES_LIST)


                          to



                          $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)





                          share|improve this answer













                          You need to have root permissions to install these native modules like serialport.



                          Go into /buildroot/package/nodejs/nodejs.mk and change



                          $(NPM) install -g $(NODEJS_MODULES_LIST)


                          to



                          $(NPM) install -g --unsafe-perm $(NODEJS_MODULES_LIST)






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 6 '18 at 14:36









                          SamSam

                          1134




                          1134



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • 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%2funix.stackexchange.com%2fquestions%2f140063%2funable-to-add-serialport-nodejs-module-when-generating-filesystem-and-cross-co%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







                              -buildroot, embedded

                              Popular posts from this blog

                              Creating 100m^2 grid automatically using QGIS?Creating grid constrained within polygon in QGIS?Createing polygon layer from point data using QGIS?Creating vector grid using QGIS?Creating grid polygons from coordinates using R or PythonCreating grid from spatio temporal point data?Creating fields in attributes table using other layers using QGISCreate .shp vector grid in QGISQGIS Creating 4km point grid within polygonsCreate a vector grid over a raster layerVector Grid Creates just one grid

                              Nikolai Prilezhaev Bibliography References External links Navigation menuEarly Russian Organic Chemists and Their Legacy092774english translationRussian Biography

                              How to link a C library to an Assembly library on Mac with clangHow do you set, clear, and toggle a single bit?Find (and kill) process locking port 3000 on MacWho is listening on a given TCP port on Mac OS X?How to start PostgreSQL server on Mac OS X?Compile assembler in nasm on mac osHow do I install pip on macOS or OS X?AFNetworking 2.0 “_NSURLSessionTransferSizeUnknown” linking error on Mac OS X 10.8C++ code for testing the Collatz conjecture faster than hand-written assembly - why?How to link a NASM code and GCC in Mac OS X?How to run x86 .asm on macOS Sierra