2015-02-25 3 views
0

Я пытаюсь установить onoff на мой raspberrypi. У меня есть узел и НПМ установлен, но когда я бегу:не может установить npm onoff на raspberrypi

sudo npm install --unsafe-perm --verbose -g onoff 

Он застревает после того, как:

gyp verb extracted file from tarball tools/msvs/genfiles/node_perfctr_provider.h 

у вас есть какие-нибудь идеи? Вот что я получаю после запуска НОЙ команды установки:

[email protected] ~ $ sudo npm install --unsafe-perm --verbose -g onoff 
npm info it worked if it ends with ok 
npm verb cli [ '/usr/local/bin/node', 
npm verb cli '/usr/local/bin/npm', 
npm verb cli 'install', 
npm verb cli '--unsafe-perm', 
npm verb cli '--verbose', 
npm verb cli '-g', 
npm verb cli 'onoff' ] 
npm info using [email protected] 
npm info using [email protected] 
npm verb cache add spec onoff 
npm verb addNamed [email protected]* 
npm verb addNameRange registry:https://registry.npmjs.org/onoff not in flight; f      etching 
npm verb request uri https://registry.npmjs.org/onoff 
npm verb request no auth needed 
npm info attempt registry request try #1 at 09:47:36 
npm verb request id 79057999e8ab10b1 
npm verb etag "1ED7ZJBPDILSN8P71ICWCIBA2" 
npm http request GET https://registry.npmjs.org/onoff 
npm http 304 https://registry.npmjs.org/onoff 
npm verb etag https://registry.npmjs.org/onoff from cache 
npm verb get saving onoff to /root/.npm/registry.npmjs.org/onoff/.cache.json 
npm verb addNamed [email protected] 
npm verb afterAdd /root/.npm/onoff/1.0.2/package/package.json not in flight; wri      ting 
npm verb afterAdd /root/.npm/onoff/1.0.2/package/package.json written 
npm info install [email protected] into /usr/local/lib 
npm info installOne [email protected] 
npm verb installOne of onoff to /usr/local/lib not in flight; installing 
npm verb lock using /root/.npm/_locks/onoff-f2713974fa0ced28.lock for /usr/local      /lib/node_modules/onoff 
npm verb unbuild lib/node_modules/onoff 
npm info preuninstall [email protected] 
npm info uninstall [email protected] 
npm verb unbuild rmStuff [email protected] from /usr/local/lib/node_modules 
npm info postuninstall [email protected] 
npm verb gentlyRm vacuuming /usr/local/lib/node_modules/onoff 
npm verb tar unpack /root/.npm/onoff/1.0.2/package.tgz 
npm verb tar unpacking to /usr/local/lib/node_modules/onoff 
npm verb gentlyRm vacuuming /usr/local/lib/node_modules/onoff 
npm info preinstall [email protected] 
npm verb cache add spec [email protected]~0.1.12 
npm verb addNamed [email protected]>=0.1.12 <0.2.0 
npm verb addNameRange registry:https://registry.npmjs.org/epoll not in flight; f      etching 
npm verb request uri https://registry.npmjs.org/epoll 
npm verb request no auth needed 
npm info attempt registry request try #1 at 09:47:43 
npm verb etag "A3DT4BLFDXTSQGIQY2GSA3MNU" 
npm http request GET https://registry.npmjs.org/epoll 
npm http 304 https://registry.npmjs.org/epoll 
npm verb etag https://registry.npmjs.org/epoll from cache 
npm verb get saving epoll to /root/.npm/registry.npmjs.org/epoll/.cache.json 
npm verb addNamed [email protected] 
npm verb afterAdd /root/.npm/epoll/0.1.12/package/package.json not in flight; wr      iting 
npm verb afterAdd /root/.npm/epoll/0.1.12/package/package.json written 
npm info install [email protected] into /usr/local/lib/node_modules/onoff 
npm info installOne [email protected] 
npm verb installOne of epoll to /usr/local/lib/node_modules/onoff not in flight;       installing 
npm verb lock using /root/.npm/_locks/epoll-4c03fef6dbce0644.lock for /usr/local      /lib/node_modules/onoff/node_modules/epoll 
npm verb unbuild lib/node_modules/onoff/node_modules/epoll 
npm verb gentlyRm vacuuming /usr/local/lib/node_modules/onoff/node_modules/epoll 
npm verb tar unpack /root/.npm/epoll/0.1.12/package.tgz 
npm verb tar unpacking to /usr/local/lib/node_modules/onoff/node_modules/epoll 
npm verb gentlyRm vacuuming /usr/local/lib/node_modules/onoff/node_modules/epoll 
npm info preinstall [email protected] 
npm verb cache add spec [email protected]~1.6.2 
npm verb addNamed [email protected]>=1.6.2 <1.7.0 
npm verb addNameRange registry:https://registry.npmjs.org/nan not in flight; fet      ching 
npm verb cache add spec [email protected]~1.2.1 
npm verb addNamed [email protected]>=1.2.1 <1.3.0 
npm verb addNameRange registry:https://registry.npmjs.org/bindings not in flight      ; fetching 
npm verb request uri https://registry.npmjs.org/nan 
npm verb request no auth needed 
npm info attempt registry request try #1 at 09:47:47 
npm verb etag "EI65ZGD4YQM5HZLU2BK7SJIT9" 
npm http request GET https://registry.npmjs.org/nan 
npm verb request uri https://registry.npmjs.org/bindings 
npm verb request no auth needed 
npm info attempt registry request try #1 at 09:47:47 
npm verb etag "BJGP1201ZXLWX88VO1W0N0YSR" 
npm http request GET https://registry.npmjs.org/bindings 
npm http 304 https://registry.npmjs.org/nan 
npm verb etag https://registry.npmjs.org/nan from cache 
npm verb get saving nan to /root/.npm/registry.npmjs.org/nan/.cache.json 
npm http 304 https://registry.npmjs.org/bindings 
npm verb etag https://registry.npmjs.org/bindings from cache 
npm verb get saving bindings to /root/.npm/registry.npmjs.org/bindings/.cache.js      on 
npm verb addNamed [email protected] 
npm verb addNamed [email protected] 
npm verb afterAdd /root/.npm/nan/1.6.2/package/package.json not in flight; writi      ng 
npm verb afterAdd /root/.npm/bindings/1.2.1/package/package.json not in flight;       writing 
npm verb afterAdd /root/.npm/nan/1.6.2/package/package.json written 
npm verb afterAdd /root/.npm/bindings/1.2.1/package/package.json written 
npm info install [email protected] into /usr/local/lib/node_modules/onoff/node_modules/e      poll 
npm info install [email protected] into /usr/local/lib/node_modules/onoff/node_modu      les/epoll 
npm info installOne [email protected] 
npm verb installOne of nan to /usr/local/lib/node_modules/onoff/node_modules/epo      ll not in flight; installing 
npm info installOne [email protected] 
npm verb installOne of bindings to /usr/local/lib/node_modules/onoff/node_module      s/epoll not in flight; installing 
npm verb lock using /root/.npm/_locks/nan-b11e02961bedc61b.lock for /usr/local/l      ib/node_modules/onoff/node_modules/epoll/node_modules/nan 
npm verb lock using /root/.npm/_locks/bindings-986bd2a734aeda4d.lock for /usr/lo      cal/lib/node_modules/onoff/node_modules/epoll/node_modules/bindings 
npm verb unbuild lib/node_modules/onoff/node_modules/epoll/node_modules/nan 
npm verb unbuild lib/node_modules/onoff/node_modules/epoll/node_modules/bindings 
npm verb gentlyRm vacuuming /usr/local/lib/node_modules/onoff/node_modules/epoll      /node_modules/nan 
npm verb gentlyRm vacuuming /usr/local/lib/node_modules/onoff/node_modules/epoll      /node_modules/bindings 
npm verb tar unpack /root/.npm/nan/1.6.2/package.tgz 
npm verb tar unpacking to /usr/local/lib/node_modules/onoff/node_modules/epoll/n      ode_modules/nan 
npm verb gentlyRm vacuuming /usr/local/lib/node_modules/onoff/node_modules/epoll      /node_modules/nan 
npm verb tar unpack /root/.npm/bindings/1.2.1/package.tgz 
npm verb tar unpacking to /usr/local/lib/node_modules/onoff/node_modules/epoll/n      ode_modules/bindings 
npm verb gentlyRm vacuuming /usr/local/lib/node_modules/onoff/node_modules/epoll      /node_modules/bindings 
npm info preinstall [email protected] 
npm verb about to build /usr/local/lib/node_modules/onoff/node_modules/epoll/nod      e_modules/bindings 
npm info build /usr/local/lib/node_modules/onoff/node_modules/epoll/node_modules      /bindings 
npm verb linkStuff [ true, 
npm verb linkStuff '/usr/local/lib/node_modules', 
npm verb linkStuff false, 
npm verb linkStuff '/usr/local/lib/node_modules/onoff/node_modules/epoll/node_      modules' ] 
npm info linkStuff [email protected] 
npm verb linkBins [email protected] 
npm verb linkMans [email protected] 
npm verb rebuildBundles [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm verb unlock done using /root/.npm/_locks/bindings-986bd2a734aeda4d.lock for       /usr/local/lib/node_modules/onoff/node_modules/epoll/node_modules/bindings 
npm info preinstall [email protected] 
npm verb about to build /usr/local/lib/node_modules/onoff/node_modules/epoll/nod      e_modules/nan 
npm info build /usr/local/lib/node_modules/onoff/node_modules/epoll/node_modules      /nan 
npm verb linkStuff [ true, 
npm verb linkStuff '/usr/local/lib/node_modules', 
npm verb linkStuff false, 
npm verb linkStuff '/usr/local/lib/node_modules/onoff/node_modules/epoll/node_      modules' ] 
npm info linkStuff [email protected] 
npm verb linkBins [email protected] 
npm verb linkMans [email protected] 
npm verb rebuildBundles [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm verb unlock done using /root/.npm/_locks/nan-b11e02961bedc61b.lock for /usr/      local/lib/node_modules/onoff/node_modules/epoll/node_modules/nan 
npm verb about to build /usr/local/lib/node_modules/onoff/node_modules/epoll 
npm info build /usr/local/lib/node_modules/onoff/node_modules/epoll 
npm verb linkStuff [ true, 
npm verb linkStuff '/usr/local/lib/node_modules', 
npm verb linkStuff false, 
npm verb linkStuff '/usr/local/lib/node_modules/onoff/node_modules' ] 
npm info linkStuff [email protected] 
npm verb linkBins [email protected] 
npm verb linkMans [email protected] 
npm verb rebuildBundles [email protected] 
npm verb rebuildBundles [ 'bindings', 'nan' ] 
npm info install [email protected] 

> [email protected] install /usr/local/lib/node_modules/onoff/node_modules/epoll 
> node-gyp rebuild 

gyp info it worked if it ends with ok 
gyp verb cli [ 'node', 
gyp verb cli '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-g      yp.js', 
gyp verb cli 'rebuild' ] 
gyp info using [email protected] 
gyp info using [email protected] | linux | arm 
gyp verb command rebuild [] 
gyp verb command clean [] 
gyp verb clean removing "build" directory 
gyp verb command configure [] 
gyp verb check python checking for Python executable "python" in the PATH 
gyp verb `which` succeeded python /usr/bin/python 
gyp verb check python version `python -c "import platform; print(platform.python      _version());"` returned: "2.7.3\n" 
gyp verb get node dir no --target version specified, falling back to host node v      ersion: v0.12.0 
gyp verb command install [ 'v0.12.0' ] 
gyp verb install input version string "v0.12.0" 
gyp verb install installing version: 0.12.0 
gyp verb install --ensure was passed, so won't reinstall if already installed 
gyp verb install version is already installed, need to check "installVersion" 
gyp verb got "installVersion" 0 
gyp verb needs "installVersion" 9 
gyp verb install version is no good; reinstalling 
gyp verb ensuring nodedir is created /root/.node-gyp/0.12.0 
gyp http GET http://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz 
gyp http 200 http://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz 
gyp verb extracted file from tarball tools/msvs/genfiles/node_etw_provider.h 
gyp verb extracted file from tarball tools/msvs/genfiles/node_perfctr_provider.h 
+0

configure не является командой npm. – Txugo

ответ

0

Я не уверен, какая версия Linux вы insatlling, но это звучит как вам не хватает строить-важное значение.

APT-получить установку -y наращивание существенно

или Google это для вашего дистрибутива.

+0

это распутин. «build-essential - это уже самая новая версия». – Txugo

+0

Я удалил узел и удалил все пакеты, и я все равно получаю ту же ошибку. Я попробовал то же самое на моем новом RaspberryPi2, и он работает. Может ли это быть связано с нехваткой памяти на исходном 256 МБ пи? мне нужно изменить размер файла подкачки? – Txugo

1

Оказалось, что проблема связана с berryboot. После переустановки raspbian без berryboot все работало нормально. Для получения дополнительной информации см. this ticket

Смежные вопросы