dataplay2 icon indicating copy to clipboard operation
dataplay2 copied to clipboard

Step 9/19 Run npm install -g bower 报错

Open lxh3251335 opened this issue 7 years ago • 2 comments

npm http GET https://registry.npmjs.org/bower npm http GET https://registry.npmjs.org/bower npm http GET https://registry.npmjs.org/bower npm ERR! Error: CERT_UNTRUSTED npm ERR! at SecurePair. (tls.js:1370:32) npm ERR! at SecurePair.EventEmitter.emit (events.js:92:17) npm ERR! at SecurePair.maybeInitFinished (tls.js:982:10) npm ERR! at CleartextStream.read [as _read] (tls.js:469:13) npm ERR! at CleartextStream.Readable.read (_stream_readable.js:320:10) npm ERR! at EncryptedStream.write [as _write] (tls.js:366:25) npm ERR! at doWrite (_stream_writable.js:223:10) npm ERR! at writeOrBuffer (_stream_writable.js:213:5) npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:180:11) npm ERR! at write (_stream_readable.js:583:24) npm ERR! If you need help, you may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! [email protected]

npm ERR! System Linux 4.15.0-30-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "bower" npm ERR! cwd / npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /npm-debug.log npm ERR! not ok code 0

lxh3251335 avatar Aug 19 '18 13:08 lxh3251335

环境没装全,装下nodejs和bower

kepy909 avatar Jan 04 '19 09:01 kepy909

You can add RUN npm set strict-ssl false to the Dockerfile before Run npm install -g bower. I fixed this error with this change.

yydai avatar Feb 02 '19 10:02 yydai