Skip to content

Instantly share code, notes, and snippets.

@crouchingbadger
Created March 30, 2015 17:08
Show Gist options
  • Save crouchingbadger/f5d2127f17e190aac9af to your computer and use it in GitHub Desktop.
Save crouchingbadger/f5d2127f17e190aac9af to your computer and use it in GitHub Desktop.
Errors installing node-red
Step 3 : RUN npm install -g node-red
---> Running in 8847c66dbaa6
> [email protected] install /usr/local/lib/node_modules/node-red/node_modules/irc/node_modules/node-icu-charset-detector
> node-gyp rebuild
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/.node-gyp/0.10.38"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/node-red/node_modules/irc/node_modules/node-icu-charset-detector/.node-gyp"
make: Entering directory '/usr/local/lib/node_modules/node-red/node_modules/irc/node_modules/node-icu-charset-detector/build'
CXX(target) Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o
../node-icu-charset-detector.cpp:5:28: fatal error: unicode/ucsdet.h: No such file or directory
#include <unicode/ucsdet.h>
^
compilation terminated.
node-icu-charset-detector.target.mk:81: recipe for target 'Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o' failed
make: *** [Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/node-red/node_modules/irc/node_modules/node-icu-charset-detector/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.13.0-32-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/node-red/node_modules/irc/node_modules/node-icu-charset-detector
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
> [email protected] install /usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/.node-gyp/0.10.38"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate/.node-gyp"
make: Entering directory '/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
COPY Release/validation.node
make: Leaving directory '/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate/build'
npm WARN optional dep failed, continuing [email protected]
> [email protected] install /usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/.node-gyp/0.10.38"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/bufferutil/.node-gyp"
make: Entering directory '/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
COPY Release/bufferutil.node
make: Leaving directory '/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/bufferutil/build'
> [email protected] install /usr/local/lib/node_modules/node-red/node_modules/irc/node_modules/iconv
> node-gyp rebuild
gyp WARN EACCES user "undefined" does not have permission to access the dev dir "/.node-gyp/0.10.38"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/node-red/node_modules/irc/node_modules/iconv/.node-gyp"
make: Entering directory '/usr/local/lib/node_modules/node-red/node_modules/irc/node_modules/iconv/build'
CC(target) Release/obj.target/libiconv/deps/libiconv/lib/iconv.o
AR(target) Release/obj.target/iconv.a
COPY Release/iconv.a
CXX(target) Release/obj.target/iconv/src/binding.o
SOLINK_MODULE(target) Release/obj.target/iconv.node
SOLINK_MODULE(target) Release/obj.target/iconv.node: Finished
COPY Release/iconv.node
make: Leaving directory '/usr/local/lib/node_modules/node-red/node_modules/irc/node_modules/iconv/build'
> [email protected] install /usr/local/lib/node_modules/node-red/node_modules/serialport
> node-pre-gyp install --fallback-to-build
[serialport] Success: "/usr/local/lib/node_modules/node-red/node_modules/serialport/build/serialport/v1.4.10/Release/node-v11-linux-x64/serialport.node" is installed via remote
/usr/local/bin/node-red -> /usr/local/lib/node_modules/node-red/red.js
/usr/local/bin/node-red-pi -> /usr/local/lib/node_modules/node-red/bin/node-red-pi
[email protected] /usr/local/lib/node_modules/node-red
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
---> 0311c2f2e0f9
Removing intermediate container 8847c66dbaa6
Step 4 : EXPOSE 1880
---> Running in 3591f163fb3e
---> efac2891e76c
Removing intermediate container 3591f163fb3e
Step 5 : CMD /usr/local/bin/node-red
---> Running in 08acbf6024fb
---> 8a6784bcd0fa
Removing intermediate container 08acbf6024fb
Successfully built 8a6784bcd0fa
@dceejay
Copy link

dceejay commented Apr 1, 2015

Hi Ben,

yes although though are "errors" they are "optional" - eg see the line 41 "npm WARN optional dep failed, continuing [email protected]" - so although it failed it continues Ok - so in fact it is built ok.

The base set of Node-RED does work fine... - of course if you add extra nodes then some of them may require gyp to work properly - but then the non slim version should be ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment