小编use*_*406的帖子

npm : 取决于: node-gyp (>= 3.6.2~) 但它不会被安装

我做了以下步骤:

git clone https://github.com/nibtehaz/NORTH-app.git
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install # which caused the following error
Run Code Online (Sandbox Code Playgroud)

并得到

The following packages have unmet dependencies:
 nodejs : Conflicts: npm
 npm : Depends: node-gyp (>= 3.6.2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我做了建议的事情,但它导致了另一个问题:

sudo apt install node-gyp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not …
Run Code Online (Sandbox Code Playgroud)

node.js npm

8
推荐指数
3
解决办法
1万
查看次数

VS Code 不将 Chrome 显示为 Flutter 的设备

我通过以下方式安装 Flutter 和 VS Code:

\n
$ sudo snap install --classic code\n$ sudo snap install --classic flutter \n$ export CHROME_EXECUTABLE="/usr/bin/chromium"\n
Run Code Online (Sandbox Code Playgroud)\n
$ flutter doctor -v\n[\xe2\x9c\x93] Flutter (Channel stable, 2.2.1, on Linux, locale en_AU.UTF-8)\n    \xe2\x80\xa2 Flutter version 2.2.1 at /home/debian/snap/flutter/common/flutter\n    \xe2\x80\xa2 Framework revision 02c026b03c (4 months ago), 2021-05-27 12:24:44 -0700\n    \xe2\x80\xa2 Engine revision 0fdb562ac8\n    \xe2\x80\xa2 Dart version 2.13.1\n\n[\xe2\x9c\x97] Android toolchain - develop for Android devices\n    \xe2\x9c\x97 Unable to locate Android SDK.\n      Install Android Studio from: https://developer.android.com/studio/index.html\n      On first launch it will …
Run Code Online (Sandbox Code Playgroud)

visual-studio-code flutter flutter-web

6
推荐指数
1
解决办法
2117
查看次数

标签 统计

flutter ×1

flutter-web ×1

node.js ×1

npm ×1

visual-studio-code ×1