gpt4 book ai didi

node.js - 在 Centos 7 上安装 Nest.js

转载 作者:太空宇宙 更新时间:2023-11-04 00:04:37 25 4
gpt4 key购买 nike

我在 CentOS 7 上安装 Nest.js。我收到此错误:

file:///usr/lib/node_modules/@nestjs/cli/node_modules/@nuxtjs/opencollective/src/index.js:7
;(async () => {
^

SyntaxError: Unexpected token (
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.2 (node_modules/@nestjs/cli/node_modules/chokidar/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"})
npm ERR! Linux 3.10.0-693.21.1.el7.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "i" "-g" "@nestjs/cli"
npm ERR! node v6.14.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! @nestjs/cli@5.5.0 postinstall: `opencollective`
npm ERR! Exit status 1

有什么想法吗?

最佳答案

答案就在错误消息中:

npm ERR! node v6.14.3

不确定您要尝试安装哪个版本的 nest.js,但当前版本有此要求:

"engines": {
"node": ">= 8.9.0"
},

查看官方nest.js packages.json .

关于node.js - 在 Centos 7 上安装 Nest.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52913928/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com