无法安装nodejs-legacy

时间:2017-10-13 10:03:48

标签: node.js debian install

我正在尝试关注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.

有关正在发生的事情的任何想法?

1 个答案:

答案 0 :(得分:0)

找到这个旧的.txt文件,其中包含一些说明,同时对垃圾进行了排序。看来我终于解决了问题。

  1. sudo apt-get install python3-pip

  2. curl -sL https://deb.nodesource.com/setup_6.x |须藤-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-postgres sudo -u postgres psql -c'创建数据库销售商'

    sudo -u postgres psql -c“使用超级用户创建的角色销售者CREATEROLE登录密码为'saleor';”

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

  6. sudo apt-get install python3-venv

    pyvenv env1

    source env1 / bin / activate

    停用

  7. sudo apt-get install git

  8. git clone https://github.com/mirumee/saleor.git

  9. cd saleor

  10. pip3 install -r requirements.txt

  11. 导出SECRET_KEY ='您的密钥'

  12. python3 manage.py migration

  13. 纱线

  14. sudo apt-get install libfontconfig

  15. 纱线运行构建资产