• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# npm-install-checks
2
3A package that contains checks that npm runs during the installation.
4
5## API
6
7### .checkEngine(target, npmVer, nodeVer, force, strict, cb)
8Check if node/npm version is supported by the package. If not
9strict and it isn't supported, `cb` is called with the error
10object as its second argument.
11
12Error type: `ENOTSUP`
13
14### .checkPlatform(target, force, cb)
15Check if OS/Arch is supported by the package.
16
17Error type: `EBADPLATFORM`
18
19### .checkCycle(target, ancestors, cb)
20Check for cyclic dependencies.
21
22Error type: `ECYCLE`
23
24### .checkGit(folder, cb)
25Check if a folder is a .git folder.
26
27Error type: `EISGIT`
28