I'm just started using node and wanted to try it with typescript. I did an npm install @types/node
and the latest version was 7.0.4:
$ npm install @types/node [email protected] /home/wink/prgs/test-simple-node-typescript └── @types/[email protected]
Where as the latest version of node is 7.5.0:
$ node --version v7.5.0
What is the relationship between the version of node.js and that of @types/node?
18.8.3 • Public • Published 2 days ago.
By Mayank AgarwalNVM allows installing multiple node js versions on the same machine and switching between the required node js version.
node is a framework that can run JavaScript code on your machine while npm is a package manager. Using npm we can install and remove javascript packages also known as node modules.
Node. js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices; npm: The package manager for JavaScript. npm is the command-line interface to the npm ecosystem.
Simply, the major version and minor version tagged in the semver string of @types/node
is exactly corresponding to the node's version.
If you check the index.d.ts
file of @types/node
in DefinitelyTyped repository, you'll see what type of node is this declaration file for through the first line comment at the top of the file:
// Type definitions for Node.js 8.10.x // Project: http://nodejs.org/ ....
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With