Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

how do i install package? #21190

Open
2 of 14 tasks
Efunity opened this issue Jul 11, 2018 · 2 comments
Open
2 of 14 tasks

how do i install package? #21190

Efunity opened this issue Jul 11, 2018 · 2 comments
Labels

Comments

@Efunity
Copy link

Efunity commented Jul 11, 2018

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • npm is producing incorrect or undesirable behavior.
  • Other (see below for feature requests):

What's going wrong?

How can the CLI team reproduce the problem?

supporting information:

  • npm -v prints:
  • node -v prints:
  • npm config get registry prints:
  • Windows, OS X/macOS, or Linux?:
  • Network issues:
    • Geographic location where npm was run:
    • I use a proxy to connect to the npm registry.
    • I use a proxy to connect to the web.
    • I use a proxy when downloading Git repos.
    • I access the npm registry via a VPN
    • I don't use a proxy, but have limited or unreliable internet access.
  • Container:
    • I develop using Vagrant on Windows.
    • I develop using Vagrant on OS X or Linux.
    • I develop / deploy using Docker.
    • I deploy to a PaaS (Triton, Heroku).

pi@raspberrypi:~ $ sudo npm install node-red-contrib-modbus

serialport@6.1.1 install /home/pi/node_modules/serialport
prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=8.11.3 runtime=node arch=arm platform=linux)
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/node_modules/serialport/build'
gyp ERR! System Linux 4.14.52-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/serialport
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@6.1.1 install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@6.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-07-11T07_25_31_143Z-debug.log

@DanielRuf
Copy link

Did you run / install anything with sudo? This should not be the case.
This is some local permission issue.

Which npm version do you use?

@kenany kenany added the support label Jul 11, 2018
@Efunity
Copy link
Author

Efunity commented Jul 12, 2018

Hi @DanielRuf , I'm currently using a version 6.1.0 npm
pi@raspberrypi:~ $ npm -v
6.1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants