纱线安装 - 生产--pure-lockfile | SyntaxError:意外的令牌

问题描述 投票:1回答:1

我想在我的服务器上安装PeerTube。但是当我运行sudo -H -u peertube yarn install --production --pure-lockfile时,以下消息从服务器返回:

问题是什么?

install yarnpkg
1个回答
0
投票

这看起来像需要从nodesource重新安装nodejs的常见纱线错误

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

apt-get install -y nodejs

https://github.com/yarnpkg/yarn/issues/6914

© www.soinside.com 2019 - 2024. All rights reserved.