nodejs deployment

npm install 

error Error: CERT_UNTRUSTED
225 error at SecurePair.<anonymous> (tls.js:1370:32)
225 error at SecurePair.EventEmitter.emit (events.js:92:17)
225 error at SecurePair.maybeInitFinished (tls.js:982:10)
225 error at CleartextStream.read [as _read] (tls.js:469:13)
225 error at CleartextStream.Readable.read (_stream_readable.js:320:10)
225 error at EncryptedStream.write [as _write] (tls.js:366:25)
225 error at doWrite (_stream_writable.js:223:10)
225 error at writeOrBuffer (_stream_writable.js:213:5)
225 error at EncryptedStream.Writable.write (_stream_writable.js:180:11)
225 error at write (_stream_readable.js:583:24)
225 error at flow (_stream_readable.js:592:7)

Solution to the problem: The ssl verification problem can be solved by canceling the ssl verification using the following command:

npm config set strict-ssl false

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325509896&siteId=291194637