Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  1. npm-ci(1) -- Install a project with a clean slate
  2. ===================================
  3. ## SYNOPSIS
  4. npm ci
  5. ## EXAMPLE
  6. Make sure you have a package-lock and an up-to-date install:
  7. ```
  8. $ cd ./my/npm/project
  9. $ npm install
  10. added 154 packages in 10s
  11. $ ls | grep package-lock
  12. ```
  13. Run `npm ci` in that project
  14. ```
  15. $ npm ci
  16. added 154 packages in 5s
  17. ```
  18. Configure Travis to build using `npm ci` instead of `npm install`:
  19. ```
  20. # .travis.yml
  21. install:
  22. - npm ci
  23. # keep the npm cache around to speed up installs
  24. cache:
  25. directories:
  26. - "$HOME/.npm"
  27. ```
  28. ## DESCRIPTION
  29. This command is similar to `npm-install(1)`, except it's meant to be used in
  30. automated environments such as test platforms, continuous integration, and
  31. deployment. It can be significantly faster than a regular npm install by
  32. skipping certain user-oriented features. It is also more strict than a regular
  33. install, which can help catch errors or inconsistencies caused by the
  34. incrementally-installed local environments of most npm users.
  35. In short, the main differences between using `npm install` and `npm ci` are:
  36. * The project **must** have an existing `package-lock.json` or `npm-shrinkwrap.json`.
  37. * If dependencies in the package lock do not match those in `package.json`, `npm ci` will exit with an error, instead of updating the package lock.
  38. * `npm ci` can only install entire projects at a time: individual dependencies cannot be added with this command.
  39. * If a `node_modules` is already present, it will be automatically removed before `npm ci` begins its install.
  40. * It will never write to `package.json` or any of the package-locks: installs are essentially frozen.
  41. ## SEE ALSO
  42. * npm-install(1)
  43. * npm-package-locks(5)