NPM different version between 2 devs will caused problem

0 votes
240 views
added Nov 23, 2017 in NPM by LC Marshal Captain (25,790 points)
edited Nov 23, 2017 by LC Marshal

Some of the packages required a similar node and NPM version in order to work. There'll be an issue for some packages when the version in use between the 2 developers is not similar. What you can do to tackle this?

  1. To replicate whether the package is compatible with your node version is by run npm i on your shell.
  2. If its throws npm error, you can proceed with the following methods.
  3. Install the same version of node or npm. On the shell, npm -v and node -v to check version respectively.
  4. If you refuse to install the same version, you can try yarn.Install it and run yarn (=== npm i) on your shell to install dependencies. 
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...