Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

RPi4 ubuntu-standard default installation permission issue #2035

Closed
baqwas opened this issue Dec 16, 2019 · 1 comment
Closed

RPi4 ubuntu-standard default installation permission issue #2035

baqwas opened this issue Dec 16, 2019 · 1 comment

Comments

@baqwas
Copy link

baqwas commented Dec 16, 2019

Hello,

I've run into a beginner permission issue with the default installation instructions on Raspberry Pi 4 using ubuntu-server 19.10.1 pre-installed image. Here is the partial output:

ubuntu@raspbari28:~/projects$ git clone https://github.com/meanjs/mean.git
Cloning into 'mean'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 10697 (delta 12), reused 0 (delta 0), pack-reused 10671
Receiving objects: 100% (10697/10697), 3.82 MiB | 9.35 MiB/s, done.
Resolving deltas: 100% (5441/5441), done.
ubuntu@raspbari28:~/projects$ cd mean
ubuntu@raspbari28:~/projects/mean$ sudo npm install
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b fix/https-agent-vuln git://github.com/snyk/node-https-proxy-agent.git /root/.npm/_cacache/tmp/git-clone-6ca7be8b
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-6ca7be8b': Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-16T03_08_28_127Z-debug.log
ubuntu@raspbari28:~/projects/mean$ npm start

> meanjs@0.6.0 start /home/ubuntu/projects/mean

As I understand it, the ubuntu-server image uses ubuntu as the user with elevated privileges. I am running the installation command (viz. sudo npm install) which in my naivete I assume should preclude the issue experienced above. Please advise on how to correct my mistake. Thanks.

$ uname -a
Linux raspbari28 5.3.0-1014-raspi2 #16-Ubuntu SMP Tue Nov 26 11:18:23 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
  • MongoDB was installed successfully using the 18.10 package for ARM64
  • Node (v13.3.0 & npm v6.13.1) was installed from NodeSource.org
@dalelotts
Copy link
Contributor

it's safe to say this project is no longer maintained. It's been years since the last commit.

@baqwas baqwas closed this as completed Mar 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants