asdf fails node install with: permission denied error, how to grant it permission? - linux

When I try to install a node version with asdf-vm, I get the following error message:
Trying to update node-build... ok
mkdir: cannot set permissions '/tmp': Permission denied
node-build: TMPDIR=/tmp is set to a non-accessible location

Try setting TMPDIR to some directory that the installer can write to (it's running as you so anywhere you can write to should work).
For example: export TMPDIR=~/tmp/.
You may also want to report this issue to the maintainers of the asdf-nodejs plugin as the temp dir logic should work out of the box on all supported systems.

Related

how can I write java path into hadoop-env.sh I am getting error writing file: permission denied error

I am installing hadoop 3.2.1 while configuring hadoop-env.sh file I couldn't able to write the java home path i am getting an error writing env.sh permission denied, and when i am trying to change the permission for home/hadoop i am getting an error as chmod: cannot access '/home/hdoop/hadoop-3.2.1': Permission denied
it would be really appreciated if any one can fix this thank youu
I couldn't able to write the java home path i am getting an error writing env.sh permission denied, and when i am trying to change the permission for home/hadoop i am getting an error as chmod: cannot access '/home/hdoop/hadoop-3.2.1': Permission denied
it would be really appreciated if any one can fix this thank youu
JAVA_HOME should be set in .bashrc, for example, or /etc/profile
Regarding your error, try using sudo on your chmod/chown commands

vim-go: permission denied installing 'gopls'

I'm trying to setup the vim-go in a work environment but I don't have permission to install the gopls using:
GoInstallBinaris
or
go get golang.org/x/tools/gopls#latest
I'm getting this: /path/go/bin/gopls: permission denied
Is there a way to fix this issue setting up secondary GOPATH just for VIM?
Thanks

/usr/bin/env: node: Permission denied

As the title suggests I am receiving the error
/usr/bin/env: node: Permission denied
when trying to run
npm run build
for my react app. The following link is the leadup to this point with all that I've done and tried, not to be included here for the sake of not duplicating questions Error with react-scripts in npm run build.
Additionally, I have viewed this posting, Getting Error /usr/bin/env: node : Permission Denied, and it was unhelpful to me.
Any help is much appreciated.
I was working in a dockerized node environment and noticed that the mounted source code directory had different ownership (running the container as root) from host environment. Changing the ownership using:
chown -R root:root .
made the error go away for me!
The issue ended up being a matter of file ownership. Root was the owner of many things for the project rather than my profile. Simply changed the ownership from root to me.
For me, re-installing node with NVM solved the issue:
Install nvm
nvm install 14
nvm use 14
you should running command as super user sudo npm run build
For anyone else hitting this, there is another avenue of investigation. There might be another factor affecting execute permissions. There's an exec flag on drive mounts to enable script execution (neat safety feature for automounted usb sticks!). So if your code is on a drive that you've mounted, you need that option set to run scripts on it. Tell-tale signs are the permissions on the script being correct (appropriate user, group and execute bits set), but it still complaining about the shebang line (1st line) being the permission denied. Also, if you type mount, you might see noexec set on the mount point where your source code is (it may not show here if exec is set). How your mount is set up varies greatly, but a place to start is your /etc/fstab.

nodeJs installation error on windows 10 - error 2203

I have downloaded version 12 of nodeJs, but unable to install on Windows.
Error - "The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package.The error code is 2203".
I have tried some solutions like giving permissions to Temp folder in C:/Windows folder, running as Admin although the usual user has full permissions.
Error code 2203 basically pops up when the user does not have
sufficient permissions to install the program to the folder that
contains the installation point or the temp folder. Make sure that you
are logged in as an Administrator to install the programs on the
computer
Run installation with elevated permission ( try to run a program with admin privilege). This should solve the issue.

Installing rclone according to the official instructions but permission denied

Noob question, but hear me out
So I installed rclone word-for-word according to this (https://rclone.org/install/)
However, when I got around to rclone config the terminal returned 2020/02/28 11:37:29 Failed to load config file "/home/myUser/.config/rclone/rclone.conf": open /home/myUser/.config/rclone/rclone.conf: permission denied
In an attempt to fix this I ran chmod u+x "/home/myUser/.config/rclone/rclone.conf" which returned chmod: changing permissions of '/home/myUser/.config/rclone/rclone.conf': Operation not permitted
Then I ran the same command prefixed with sudo which seemed to work. Yet after running rclone config again the same permission denied error appeared. What should I do? What did I do incorrectly during install? I just want to be able to run rclone config without having to use sudo.
Unrelated side note I had a similar experience with Anaconda in which I can't run the command for opening the program without sudo but as I ran the command with it the launcher appears with an error message which I can't remember exactly but it ran along the lines of: "Cannot run in sudo mode, please do it again in user mode." Funny Catch-22 if you ask me. I ended up uninstalling it.
Solution: set the permissions of rclone.conf to chmod 777. I changed the whole folder and its files using sudo chmod -R 777 /home/myUser/.config/rclone/ for good measure. Now I can finally retry installing Anaconda.

Resources