Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the difference between npm install and npm ci?

  1. A npm ci installs from the lock file exactly and fails if package.json and the lock disagree
  2. B npm ci is faster but ignores the lock file
  3. C They are identical
  4. D npm ci only installs devDependencies
Answer

npm ci installs from the lock file exactly and fails if package.json and the lock disagree

npm ci deletes node_modules and installs strictly from the lock file, which makes it the correct choice in CI and deployment pipelines.

All NodeJS MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as