gpt4 book ai didi

node.js - 无法安装nodejs-legacy

转载 作者:行者123 更新时间:2023-12-02 10:22:26 28 4
gpt4 key购买 nike

我正在尝试关注 this教程并遇到 Node.js 安装问题。在 Debian VM 上安装,并在 nodejs 站点上运行建议的安装命令:

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejson

当我运行 sudo apt-get install nodejs-legacy 时,它给了我这个错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

对正在发生的事情有什么想法吗?

最佳答案

在对垃圾进行排序时发现了这个旧的 .txt 文件,其中包含一些说明。看起来我最终解决了这个问题。

  1. sudo apt-get install python3-pip

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

    sudo apt-get install -y nodejs

    sudo apt-get install -y build-essential

  3. sudo npm i webpack -g

  4. sudo npm install --global yarn@1.0.2

  5. https://cloud.google.com/community/tutorials/setting-up-postgressudo -u postgres psql -c '创建数据库销售'

    sudo -u postgres psql -c“使用 super 用户创建角色 saleor CREATEDB CREATEROLE 登录加密密码'saleor';”

    sudo -u postgres psql -c '将数据库 saleor 的所有权限授予 saleor;'

  6. sudo apt-get install python3-venv

    pyvenv env1

    源 env1/bin/activate

    停用

  7. sudo apt-get install git

  8. git 克隆 https://github.com/mirumee/saleor.git

  9. CD 销售员

  10. pip3 install -r requests.txt

  11. 导出 SECRET_KEY='yourkey'

  12. python3 管理.py 迁移

  13. yarn

  14. sudo apt-get install libfontconfig

  15. yarn 运行构建 Assets

关于node.js - 无法安装nodejs-legacy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46727380/

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