bEnWangg / node.js

have some problem in install node.js by macports
0 stars 0 forks source link

Nodejs with macports #1

Open bEnWangg opened 7 years ago

bEnWangg commented 7 years ago

when i use $ sudo port install nodes it's prints ---> Fetching distfiles for nodejs ---> Verifying checksums for nodejs ---> Extracting nodejs ---> Configuring nodejs Error: nodejs has been replaced by nodejs4; please install that instead. Error: org.macports.configure for port nodejs returned: obsolete port Please see the log file for port nodejs for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port nodes failed

and the macintosh will create the _opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs

why?

i find that can install by homehrew

have different between both?

by the way ,the reason why i want to learn nodejs is because the block chain use node and run truffle's development environment,and testing framework and asset pipeline for Ethereum.

if i want do it ,it's important i choose how to install nodejs? or any idea can suggest? please tell me~

bEnWangg commented 7 years ago

i try $ sudo port clean nodejs snd install again but still fail

hope anyone can help me

bEnWangg commented 7 years ago

why that my nodejs become nodejs4(i use $ sudo port install nodejs4 Password: ---> Computing dependencies for nodejs4

---> Dependencies to be installed: icu openssl zlib python27 bzip2 db48 gettext expat libiconv ncurses libedit python2_select python_select sqlite3 ---> Fetching distfiles for icu ---> Attempting to fetch icu4c-55_1-src.tgz from http://cjj.kr.distfiles.macports.org/icu ---> Verifying checksums for icu
---> Extracting icu ---> Applying patches to icu ---> Configuring icu ---> Building icu ---> Staging icu into destroot ---> Installing icu @55.1_0 ---> Activating icu @55.1_0 ---> Cleaning icu ---> Fetching archive for zlib ---> Attempting to fetch zlib-1.2.8_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/zlib ---> Attempting to fetch zlib-1.2.8_0.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/zlib ---> Installing zlib @1.2.8_0 ---> Activating zlib @1.2.8_0 ---> Cleaning zlib ---> Fetching archive for openssl ---> Attempting to fetch openssl-1.0.2j_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/openssl ---> Attempting to fetch openssl-1.0.2j_0.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/openssl ---> Installing openssl @1.0.2j_0 ---> Activating openssl @1.0.2j_0 ---> Cleaning openssl ---> Fetching archive for bzip2 ---> Attempting to fetch bzip2-1.0.6_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/bzip2 ---> Attempting to fetch bzip2-1.0.6_0.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/bzip2 ---> Installing bzip2 @1.0.6_0 ---> Activating bzip2 @1.0.6_0 ---> Cleaning bzip2 ---> Fetching archive for db48 ---> Attempting to fetch db48-4.8.30_4.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/db48 ---> Attempting to fetch db48-4.8.30_4.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/db48 ---> Installing db48 @4.8.30_4 ---> Activating db48 @4.8.30_4 ---> Cleaning db48 ---> Fetching archive for expat ---> Attempting to fetch expat-2.2.0_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/expat ---> Attempting to fetch expat-2.2.0_0.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/expat ---> Installing expat @2.2.0_0 ---> Activating expat @2.2.0_0 ---> Cleaning expat ---> Fetching archive for libiconv ---> Attempting to fetch libiconv-1.14_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/libiconv ---> Attempting to fetch libiconv-1.14_0.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/libiconv ---> Installing libiconv @1.14_0 ---> Activating libiconv @1.14_0 ---> Cleaning libiconv ---> Fetching archive for ncurses ---> Attempting to fetch ncurses-6.0_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/ncurses ---> Attempting to fetch ncurses-6.0_0.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/ncurses ---> Installing ncurses @6.0_0 ---> Activating ncurses @6.0_0 ---> Cleaning ncurses ---> Fetching archive for gettext ---> Attempting to fetch gettext-0.19.8.1_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/gettext ---> Attempting to fetch gettext-0.19.8.1_0.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/gettext ---> Installing gettext @0.19.8.1_0 ---> Activating gettext @0.19.8.1_0 ---> Cleaning gettext ---> Fetching archive for libedit ---> Attempting to fetch libedit-20160618-3.1_1.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/libedit ---> Attempting to fetch libedit-20160618-3.1_1.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/libedit ---> Installing libedit @20160618-3.1_1 ---> Activating libedit @20160618-3.1_1 ---> Cleaning libedit ---> Fetching archive for python2_select ---> Attempting to fetch python2_select-0.0_2.darwin_15.noarch.tbz2 from http://jog.id.packages.macports.org/macports/packages/python2_select ---> Attempting to fetch python2_select-0.0_2.darwin_15.noarch.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/python2_select ---> Installing python2_select @0.0_2 ---> Activating python2_select @0.0_2 ---> Cleaning python2_select ---> Fetching archive for python_select ---> Attempting to fetch python_select-0.3_7.darwin_15.noarch.tbz2 from http://jog.id.packages.macports.org/macports/packages/python_select ---> Attempting to fetch python_select-0.3_7.darwin_15.noarch.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/python_select ---> Installing python_select @0.3_7 ---> Activating python_select @0.3_7 ---> Cleaning python_select ---> Fetching archive for sqlite3 ---> Attempting to fetch sqlite3-3.14.2_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/sqlite3 ---> Attempting to fetch sqlite3-3.14.2_0.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/sqlite3 ---> Installing sqlite3 @3.14.2_0 ---> Activating sqlite3 @3.14.2_0 ---> Cleaning sqlite3 ---> Fetching archive for python27 ---> Attempting to fetch python27-2.7.12_1.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/python27 ---> Attempting to fetch python27-2.7.12_1.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/python27 ---> Installing python27 @2.7.12_1 ---> Activating python27 @2.7.12_1

To make this the default Python or Python 2 (i.e., the version run by the 'python' or 'python2' commands), run one or both of:

sudo port select --set python python27
sudo port select --set python2 python27

##############################################################

IF YOU ARE USING PYTHON FROM THE TERMINAL, PLEASE INSTALL:

py27-readline

TO AVOID A LIBEDIT / PYTHON INTERACTION ISSUE.

REF: https://trac.macports.org/ticket/48807

##############################################################

---> Cleaning python27 ---> Fetching archive for nodejs4 ---> Attempting to fetch nodejs4-4.4.7_0.darwin_15.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/nodejs4 ---> Attempting to fetch nodejs4-4.4.7_0.darwin_15.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/nodejs4 ---> Installing nodejs4 @4.4.7_0 ---> Activating nodejs4 @4.4.7_0 ---> Cleaning nodejs4 ---> Updating database of binaries ---> Scanning binaries for linking errors
---> No broken files found. it's successes ?

and use the $ sudo port install npm2 ---> Computing dependencies for npm2 ---> Fetching archive for npm2 ---> Attempting to fetch npm2-2.15.9_0.darwin_15.noarch.tbz2 from http://jog.id.packages.macports.org/macports/packages/npm2 ---> Attempting to fetch npm2-2.15.9_0.darwin_15.noarch.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/npm2 ---> Installing npm2 @2.15.9_0 ---> Activating npm2 @2.15.9_0

It is not recommended to install packages globally. But if you do so please be aware that they won't get cleaned up when you deactivate or uninstall npm2. Globally installed packages will remain in /opt/local/lib/node_modules/ until you manually delete them.

---> Cleaning npm2 ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. bende-MacBook-Air:~ benwang$

it's successes too?