Other Projects
[CB for BP] Node.js set up develop environment
3
5937
View: 5937|Reply: 3
|
[Other Projects]
[CB for BP] Node.js set up develop environment
[Copy link]
|
|
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
And I find this interesting project NodeOS(, though still work in progess). So let's set up the Node.js develop environmet on BP first. This is a little different from on PC.
In root, or you can use sudo. If you don't set the root, follow:- #sudo passwd
- Password:<---------the password you use now
- Enter new UNIX password:<------the new root password
- Retype new UNIX password:<------retype it
Copy the Code type su enter the root mode, download the package- root@cubieboard2:/# cd /home/linaro/Downloads/
- root@cubieboard2:/home/linaro/Downloads# wget http://www.nodejs.org/dist/v0.10.15/node-v0.10.28.tar.gz
Copy the Code you can goto check the newest node.js
After download the package,
- #tar -xzvf node-v0.10.28.tar.gz
- #cd node-v0.10.28
- #./configure --without-snapshot
Copy the Code This part is important.
after see 'v8_use_snapshot': 'false', we can move on:. Now you can AFK, for a movie. It takes a long time.Almost Done!
To check whether install successfully:
Enjoy Node.js |
|
|
|
|
|
|
|
thanks for this |
|
|
|
|
|
|
|
i got an error when running make.
Do you know what might be the matter??
- Traceback (most recent call last):
- File "../../tools/js2c.py", line 578, in <module>
- main()
- File "../../tools/js2c.py", line 574, in main
- JS2C(args[3:], args[0], args[1], args[2], options.raw, options.startup_blob)
- File "../../tools/js2c.py", line 542, in JS2C
- sources = PrepareSources(source)
- File "../../tools/js2c.py", line 394, in PrepareSources
- assert len(macro_files) in [0, 1]
- TypeError: object of type 'filter' has no len()
- deps/v8/tools/gyp/js2c.target.mk:13: recipe for target '/home/bananapi/test/node-v0.12.7/out/Release/obj/gen/libraries.cc' failed
- make[1]: *** [/home/bananapi/test/node-v0.12.7/out/Release/obj/gen/libraries.cc] Error 1
- make[1]: Leaving directory '/home/bananapi/test/node-v0.12.7/out'
- Makefile:45: recipe for target 'node' failed
- make: *** [node] Error 2
Copy the Code i have an B-Pro with archlinux.
|
|
|
|
|
|
|