How to update typeScript and npm in debian?
I see the successfull download but it doesn't take effect at all.
I have read questions here how to update npm and how to update typescript and I believe I follow bellow exactly what I have to do. Nevertheless, as the result shows from tsc or npm -version, I didn't get the version updated.
demecarvO@nodejs ~/dev/WSs/NodeJs/myapp $ tsc --version
message TS6029: Version 1.7.5
demecarvO@nodejs ~/dev/WSs/NodeJs/myapp $ sudo npm install -g typescript@latest
[sudo] password for demecarvO:
/usr/local/bin/tsc -> /usr/local/lib/node_modules/typescript/bin/tsc
/usr/local/bin/tsserver -> /usr/local/lib/node_modules/typescript/bin/tsserver
/usr/local/lib
└── typescript@2.2.1
demecarvO@nodejs ~/dev/WSs/NodeJs/myapp $ sudo npm install npm@latest -g
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
- core-util-is@1.0.2 node_modules/npm/node_modules/mississippi/node_modules/concat-stream/node_modules/readable-stream/node_modules/core-util-is...
- readable-stream@2.0.6 node_modules/npm/node_modules/mississippi/node_modules/through2/node_modules/readable-stream
/usr/local/lib
└─┬ npm@4.4.1
├── abbrev@1.1.0
├── ansi-regex@2.1.1
├── aproba@1.1.1
├── hosted-git-info@2.2.0
├─┬ mississippi@1.3.0
│ ├── concat-stream@1.6.0
│ ├── duplexify@3.5.0
│ ├── flush-write-stream@1.0.2
│ ├── pump@1.0.2
│ ├── stream-each@1.2.0
│ └── through2@2.0.3
├── opener@1.4.3
├── readable-stream@2.2.3
├── rimraf@2.6.0
└─┬ validate-npm-package-name@3.0.0
└── builtins@1.0.3
demecarvO@nodejs ~/dev/WSs/NodeJs/myapp $ npm -v
3.5.2
demecarvO@nodejs ~/dev/WSs/NodeJs/myapp $
via DemeCarvO
No comments:
Post a Comment