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

errors while attempting to update NPM #12537

Closed
DH-Cykul opened this issue May 1, 2016 · 2 comments
Closed

errors while attempting to update NPM #12537

DH-Cykul opened this issue May 1, 2016 · 2 comments

Comments

@DH-Cykul
Copy link

DH-Cykul commented May 1, 2016

Getting the following errors while attempting to update NPM. Please see below:

pi@raspberrypi:~ $ sudo npm i -g npm@2.x
npm ERR! Error: CERT_NOT_YET_VALID
npm ERR!     at SecurePair.<anonymous> (tls.js:1365:32)
npm ERR!     at SecurePair.emit (events.js:92:17)
npm ERR!     at SecurePair.maybeInitFinished (tls.js:977:10)
npm ERR!     at CleartextStream.read [as _read] (tls.js:469:13)
npm ERR!     at CleartextStream.Readable.read (_stream_readable.js:323:10)
npm ERR!     at EncryptedStream.write [as _write] (tls.js:366:25)
npm ERR!     at doWrite (_stream_writable.js:226:10)
npm ERR!     at writeOrBuffer (_stream_writable.js:216:5)
npm ERR!     at EncryptedStream.Writable.write (_stream_writable.js:183:11)
npm ERR!     at write (_stream_readable.js:585:24)
npm ERR!     at flow (_stream_readable.js:594:7)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.1.19-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "i" "-g" "npm@2.x"
npm ERR! cwd /home/pi
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@raspberrypi:~ $ 
@somebody1234
Copy link

See #2902
Are you sure your computer's clock has the correct time?

@DH-Cykul
Copy link
Author

DH-Cykul commented May 3, 2016

Yup - time was the issue! Thank you very much.

@DH-Cykul DH-Cykul closed this as completed May 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants