You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im having issues using files that have been provided by Node js for arm7 (android).
Currently, Im trying to run node js files in arm7.
However, Im not sure how should I use the files that have been provided.
I have tried putting files in /system/bin and command node by running node file in node-v0.12.0-linux-arm-pi/bin.
However, it provides error by the node file does not exist.
How should I solve this problem?
wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-armv7l.tar.gz
tar -xf node-v6.10.3-linux-armv7l.tar.gz --directory /usr/local --strip-components 1
This will put the ./bin directory in /usr/local/bin, which should be in your $PATH already. You can verify that it worked with:
which node
which npm
node --version
npm --version
Alternatives:
If you want to use a package manager, see this guide. For older Linux distros you might need to see these instructions.
If you want to install node manually, there is no "installation" on Linux per se, you just need to extract the tarball, and make sure the node and npm binaries in the ./bin subdirectory are somewhere in your path.
I find nvm is useful for managing node installations (it will download, extract, and add to path for you). If you want to do things manually, you can do something like:
Activity
gibfahn commentedon May 19, 2017
I assume you're running Raspbian not Windows 7 right?
Which file did you put in
/system/bin?Assuming you're using the terminal, you can navigate to
node-v0.12.0-linux-arm-pi/binand do:rebecca-eujin commentedon May 22, 2017
yes I did the same way however it provides error by file does not exist
gibfahn commentedon May 22, 2017
What is the output of the
lscommand?rebecca-eujin commentedon May 23, 2017
node npm
gibfahn commentedon May 23, 2017
What about
ls -l?gibfahn commentedon May 26, 2017
Short answer:
To install manually do:
This will put the
./bindirectory in/usr/local/bin, which should be in your$PATHalready. You can verify that it worked with:Alternatives:
If you want to use a package manager, see this guide. For older Linux distros you might need to see these instructions.
If you want to install node manually, there is no "installation" on Linux per se, you just need to extract the tarball, and make sure the
nodeandnpmbinaries in the./binsubdirectory are somewhere in your path.I find nvm is useful for managing node installations (it will download, extract, and add to path for you). If you want to do things manually, you can do something like:
gireeshpunathil commentedon Mar 11, 2018
closing as answered, please re-open if this is still outstanding.