frankcollins3 / fill_container

codecamp team project updated with new icon screen menu + puppeteer icon search, GraphQL, redux, relational psql !mongo, and accuweatherAPI
1 stars 0 forks source link

install npm i with ubuntu. command that doesn't work provided by compiler [8:16pm] #258

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

attempting to do: use ubuntu SSH-client rather than terminal emulator to clone this app from git and deploy.

error: ubuntu@ip-${ip}:/fill_container$ npm i Command 'npm' not found, but can be installed with: sudo apt install npm ubuntu@ip-${ip}:/fill_container$ sudo apt install npm Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package npm ubuntu@ip-${ip}:/fill_container$ npm i Command 'npm' not found, but can be installed with: sudo apt install npm ubuntu@ip-${ip} :/fill_container$

proposed approach: 1) following along with this video. this tutorial is vid from which ubuntu approach came. https://www.youtube.com/watch?v=oaK223BiTBU

2) chatGPT

frankcollins3 commented 1 year ago

Based on the error messages you provided, it seems that the npm package is not available in the default repositories for your Ubuntu system. This could be due to a few reasons:

Incorrect or outdated package repositories: Ensure that your package repositories are up to date. You can do this by running the following command before attempting to install npm again:

sql Copy code sudo apt update Missing or disabled repository: Check if the required repository for npm is enabled. The package might be available in a specific repository that is not enabled by default. You can enable the repository by modifying the /etc/apt/sources.list file or by adding a new file with the repository information in the /etc/apt/sources.list.d/ directory.

Compatibility issues or incorrect package name: Verify that you are using the correct package name for npm on your Ubuntu version. It's possible that the package name has changed or is different from the standard one. You can search for the available npm packages using the following command:

sql Copy code apt search npm Network connectivity or DNS issues: Make sure your server has a working internet connection and can resolve domain names. DNS issues can prevent the package manager from finding the required package.

If none of these steps resolve the issue, please provide more details about your Ubuntu version and any customizations you have made to your package repositories.

GPT advises update of ubuntu first [8:19pm]

frankcollins3 commented 1 year ago
:/fill_container$ sudo apt update
Hit:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [541 kB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [134 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [10.3 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [485 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [75.6 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [745 kB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [132 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [15.6 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [35.9 kB]
Get:15 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB]
Get:16 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7040 B]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [252 B]
Get:18 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]
Get:19 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:20 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]
Get:21 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B]
Get:22 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [763 kB]
Get:23 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [195 kB]
Get:24 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [15.3 kB]
Get:25 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [508 kB]
Get:26 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [79.3 kB]
Get:27 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [484 B]
Get:28 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [937 kB]
Get:29 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [200 kB]
Get:30 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [20.5 kB]
Get:31 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [47.7 kB]
Get:32 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [11.6 kB]
Get:33 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [596 B]
Get:34 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [40.9 kB]
Get:35 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [10.2 kB]
Get:36 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]
Get:37 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
Get:38 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [22.2 kB]
Get:39 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [15.0 kB]
Get:40 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [552 B]
Get:41 http://us-east-2.ec2.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 25.8 MB in 5s (5527 kB/s)

👍 update worked [8:20pm]

frankcollins3 commented 1 year ago

👍 progresss

chatGPT was/is a good ask.

[8:24pm]