-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/build' #1619
Comments
Sorry anything went wrong. Here's the Putty Output: pi@raspberrypi:~ $ sudo npm install -g node-red-admin
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.14.0" |
Having the same issue; did you ever figure out a solution? |
Does adding |
a word of caution to folks reading this: try and avoid having to use sudo with npm or node in general .. if you need to give user accounts access to the global node_modules space then do that. If it's a single-user machine, just give that user account ownership of /usr/lib/node_modules or /usr/local/lib/ or wherever your global node_modules space is. |
and how do we do that? |
Node Version:
Node v10.14.0, npm 6.4.1
Platform:
Linux raspberrypi 4.14.79-v7+ Unable to install node_gyp #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
Compiler:
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 6.3.0-18+rpi1+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1+deb9u1)
Module: install: 'sudo npm install -g node-red-admin'
Verbose output (from npm or node-gyp):
Can anybody help me, please? Thanks in advance!
The text was updated successfully, but these errors were encountered: