Are you first timer at lazacode.org? Why not join us and start exchange your knowledge with everyone. Register today!

NPM different version between 2 devs will caused problem

0 votes
2 views
added Nov 23 in NPM by LC Marshal Second Warrant Officer (3,200 points)
edited Nov 23 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. 
   

Please log in or register to response this solution.

...