0

ヤーン ワークスペースを Azure Web サービスで動作させることができず、ヤーンをアップグレードできません。

Azure Web サービスとしてデプロイされたアプリケーションがあります。ヤーン ワークスペースを使用します。残念ながらyarn installエラー発生時に

[3/4] Linking dependencies...
error An unexpected error occurred: "ENOENT: no such file or directory, lstat '/home/site/wwwroot/node_modules/@gsx/common'".
info If you think this is a bug, please open a bug report with the information provided in "/home/site/wwwroot/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

糸をアップグレードすると問題が解決する可能性があることを読みました。Azure にはデフォルトで yarn 1.6.0 が付属しています。

リポジトリにdeploy.shファイルがあるので、デプロイ プロセスをカスタマイズできます。糸をアップグレードするコマンドを追加したいと思います。

私は2つの方法でそれを達成しようとしました:

npm install -g yarn

sudo npm install -g yarn

どちらも失敗します。最初の状況では、十分な権限がないというメッセージが表示されます。2 番目のログには、コマンドがないと記録されていsudoます。

アイデアはありますか、どうすれば糸をアップグレードできますか?

4

1 に答える 1