Это работает для моих centos 7. Команда, которую я использовал, является
[root@yellowdog ~]# npm install -g @nestjs/cli
/usr/bin/nest -> /usr/lib/node_modules/@nestjs/cli/bin/nest.js
> @nestjs/cli@5.5.0 postinstall /usr/lib/node_modules/@nestjs/cli
> opencollective
Thanks for installing nest ?
Please consider donating to our open collective
to help us maintain this package.
Number of contributors: 54
Number of backers: 97
Annual budget: US$ 37,495
Current balance: US$ 246
? Become a partner: https://opencollective.com/nest/donate
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/@nestjs/cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ @nestjs/cli@5.5.0
added 215 packages from 173 contributors in 20.529s
[root@yellowdog ~]# node -v
v8.11.4
[root@yellowdog ~]# npm -v
6.4.1
[root@yellowdog ~]# nest --version
5.5.0