node.js - Raspberrypi npm Package installation failure -
i have rpi 0 w, i'm trying install npm in rpi using following command sudo apt-get install npm
unfortunately failed fetch package, couldn't understand error log(i believe server down, kindly correct me if i'm wrong), have solved installation error before, have attached log below:
~/desktop/alexa-avs-sample-app/samples/companionservice $ sudo apt-get install npm reading package lists... done building dependency tree reading state information... done following packages automatically installed , no longer required: coinor-libipopt1 libboost-filesystem1.55.0 libboost-program-options1.55.0 libboost-regex1.55.0 libffi5 libgmime-2.6-0 libmumps-seq-4.10.0 liboauth0 libraw10 wolframscript use 'apt-get autoremove' remove them. following packages installed: gyp libc-ares-dev libjs-node-uuid libv8-3.14-dev node-abbrev node-ansi node-ansi-color-table node-archy node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which nodejs-dev suggested packages: node-hawk node-aws-sign node-oauth-sign node-http-signature following new packages installed: gyp libc-ares-dev libjs-node-uuid libv8-3.14-dev node-abbrev node-ansi node-ansi-color-table node-archy node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which nodejs-dev npm 0 upgraded, 52 newly installed, 0 remove , 80 not upgraded. need 1,428 kb of archives. after operation, 6,840 kb of additional disk space used. want continue? [y/n] y warning: following packages cannot authenticated! gyp libjs-node-uuid libv8-3.14-dev node-async node-node-uuid node-underscore libc-ares-dev node-abbrev node-ansi node-ansi-color-table node-archy node-inherits node-block-stream node-delayed-stream node-combined-stream node-cookie-jar node-forever-agent node-mime node-form-data node-rimraf node-mkdirp node-graceful-fs node-fstream node-lru-cache node-sigmund node-minimatch node-fstream-ignore node-github-url-from-git node-once node-glob nodejs-dev node-nopt node-npmlog node-osenv node-tunnel-agent node-json-stringify-safe node-qs node-request node-semver node-tar node-which node-gyp node-ini node-lockfile node-mute-stream node-normalize-package-data node-read node-read-package-json node-retry node-sha node-slide npm install these packages without verification? [y/n] y err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main gyp 0.1~svn1729-3 not connect mirror.sysu.edu.cn:80 (202.116.65.189), connection timed out err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main libjs-node-uuid 1.4.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main libv8-3.14-dev armhf 3.14.5.8-8.1+rpi1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-async 0.8.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-node-uuid 1.4.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-underscore 1.7.0~dfsg-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main libc-ares-dev armhf 1.10.0-2+deb8u1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-abbrev 1.0.5-2 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-ansi 0.3.0-2 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-ansi-color-table 1.0.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-archy 0.0.2-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-inherits 2.0.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-block-stream 0.0.7-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-delayed-stream 0.0.5-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-combined-stream 0.0.5-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-cookie-jar 0.3.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-forever-agent 0.5.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-mime 1.2.11-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-form-data 0.1.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-rimraf 2.2.8-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-mkdirp 0.5.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-graceful-fs 3.0.2-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-fstream 0.1.24-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-lru-cache 2.3.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-sigmund 1.0.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-minimatch 1.0.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-fstream-ignore 0.0.6-2 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-github-url-from-git 1.1.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-once 1.1.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-glob 4.0.5-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main nodejs-dev armhf 0.10.29~dfsg-2 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-nopt 3.0.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-npmlog 0.0.4-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-osenv 0.1.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-tunnel-agent 0.3.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-json-stringify-safe 5.0.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-qs 2.2.4-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-request 2.26.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-semver 2.1.0-2 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-tar 0.1.18-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-which 1.0.5-2 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-gyp 0.12.2+ds-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-ini 1.1.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-lockfile 0.4.1-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-mute-stream 0.0.4-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-normalize-package-data 0.2.2-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-read 1.0.5-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-read-package-json 1.2.4-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-retry 0.6.0-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-sha 1.2.3-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main node-slide 1.1.4-1 unable connect mirror.sysu.edu.cn:http: err http://mirror.sysu.edu.cn/raspbian/raspbian/ jessie/main npm 1.4.21+ds-2 unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/g/gyp/gyp_0.1~svn1729-3_all.deb not connect mirror.sysu.edu.cn:80 (202.116.65.189), connection timed out e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-uuid/libjs-node-uuid_1.4.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/libv/libv8-3.14/libv8-3.14-dev_3.14.5.8-8.1+rpi1_armhf.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-async/node-async_0.8.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-uuid/node-node-uuid_1.4.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/u/underscore/node-underscore_1.7.0~dfsg-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/c/c-ares/libc-ares-dev_1.10.0-2+deb8u1_armhf.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-abbrev/node-abbrev_1.0.5-2_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-ansi/node-ansi_0.3.0-2_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-ansi-color-table/node-ansi-color-table_1.0.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-archy/node-archy_0.0.2-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-inherits/node-inherits_2.0.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-block-stream/node-block-stream_0.0.7-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-delayed-stream/node-delayed-stream_0.0.5-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-combined-stream/node-combined-stream_0.0.5-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-cookie-jar/node-cookie-jar_0.3.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-forever-agent/node-forever-agent_0.5.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-mime/node-mime_1.2.11-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-form-data/node-form-data_0.1.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-rimraf/node-rimraf_2.2.8-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-mkdirp/node-mkdirp_0.5.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-graceful-fs/node-graceful-fs_3.0.2-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-fstream/node-fstream_0.1.24-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-lru-cache/node-lru-cache_2.3.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-sigmund/node-sigmund_1.0.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-minimatch/node-minimatch_1.0.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-fstream-ignore/node-fstream-ignore_0.0.6-2_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-github-url-from-git/node-github-url-from-git_1.1.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-once/node-once_1.1.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-glob/node-glob_4.0.5-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/nodejs/nodejs-dev_0.10.29~dfsg-2_armhf.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-nopt/node-nopt_3.0.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-npmlog/node-npmlog_0.0.4-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-osenv/node-osenv_0.1.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-tunnel-agent/node-tunnel-agent_0.3.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-json-stringify-safe/node-json-stringify-safe_5.0.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-qs/node-qs_2.2.4-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-request/node-request_2.26.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-semver/node-semver_2.1.0-2_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-tar/node-tar_0.1.18-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-which/node-which_1.0.5-2_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-gyp/node-gyp_0.12.2+ds-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-ini/node-ini_1.1.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-lockfile/node-lockfile_0.4.1-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-mute-stream/node-mute-stream_0.0.4-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-normalize-package-data/node-normalize-package-data_0.2.2-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-read/node-read_1.0.5-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-read-package-json/node-read-package-json_1.2.4-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-retry/node-retry_0.6.0-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-sha/node-sha_1.2.3-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/node-slide/node-slide_1.1.4-1_all.deb unable connect mirror.sysu.edu.cn:http: e: failed fetch http://mirror.sysu.edu.cn/raspbian/raspbian/pool/main/n/npm/npm_1.4.21+ds-2_all.deb unable connect mirror.sysu.edu.cn:http: e: unable fetch archives, maybe run apt-get update or try --fix-missing?
is there other way install package? looking forward hear suggestions. -suresh
as npm should compiled node, can try this:
wget https://nodejs.org/dist/v6.11.1/node-v6.11.1.tar.gz sudo tar -xvzf node-v6.11.1.tar.gz cd node-v6.11.1 sudo make install
Comments
Post a Comment