How to fix permissions errors for yeoman - node.js

trying to run yo...and getting these errors. I've tried a bunch of methods to fix this..nothing worked yet.
here is what the error reads:

There is a closed issue on yeoman githib repo. Please refer to that discussuion for more details. You should try chmod g+rwx /users/jeremychoi/.config/configstore/insight-yo.json this might work in your case. More on unix permissions refer here.

Related

bash: /home/linuxbrew/.linuxbrew/bin/mongo: Permission denied [MongoDB 4.4 set up on AWS cloud 9 IDE]

I'm trying to install Mongodb version 4.4 on a AWS IDE (using a Mac and Ubuntu set up). I receive the following error message:
bash: /home/linuxbrew/.linuxbrew/bin/mongo: Permission denied
It seems it's a permission issue, however I have no idea to to rectify this. Any ideas or steps to take to resolve this?
it seems there is already a discussion about this error on the MongoDB forum.
Here is the link
They closed it as Won't fix.
The final answer was provided by Mathew Robinson as:
Closing this as Won't Fix, it seems that Linuxbrew is a very small
subset of homebrew users and we support from source builds as well as
Linux packages for all distributions we support.
In the case of Linuxbrew it would just be a way to run our from source
builds that we already document how to do.
I have the same problem
the problem is that you use homebrew and the files are in a restricted area which means Linux can't modify it.
I solved it by:
full this guide to Install MongoDB Community Edition :
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
then, instead of using mongod use mongosh which allows you to add data to the table.
I tried mongod and it never works and I don't know why.
it give aborting after fassert() failure\n\n"} so mongosh work fine.

I cannot run Gazebo and Rviz Due to Missing sdformat.dll and image_transport.dll

Hello there hope you are all well.
Few days ago I installed ROS on my Windows-10 computer by following the tutorials on their site. I worked with TurtleSim and some other features of ROS without any problem. However when I try to run Gazebo, I get an error saying sdformat.dll is missing. And when I try to run Rviz, I get an error saying image_transport.dll and resource_retriever.dll is missing. I tried updating ROS but it did no good. I asked about this on ROS' official answer site but no one responded. Is there any CMD command or chocolatey feature which I can use to repair missing files? If not, what can I do to resolve this error?
Thank you so much

/snap/bin/microk8s error - permanently dropping privs did not work: File exists

Has anyone come across this issue before?
/snap/bin/microk8s
permanently dropping privs did not work: File exists
I get the same error when trying to run any of the other sub commands like microk8s.enable, microk8s.status, microk8s.kubectl - all same error message.
I tried to:
run strace with the command to see if I can figure out what "File exists" - Nothing fruitful came of that.
Any pointers will be greatly appreciated.
I had a same error message when I execute docker command after installing docker via snap.
After logout-login, the error was solved in my case.
I asked this on the #microk8s channel on the Kubernetes Slack and someone informed me that running sudo microk8s would fix this issue. It works with that for me.

Postman doesn't have the required permissions to install Node.js and other dependencies

When I try to install interceptor to use cookies in postman I get the error that is mentioned in header. OS is linux.
I googled the error description but it is not mentioned anywhere. Any idea would be really helpful.
Well, there is not any answer here yet. But I found a workaround that is installing PostmanCanary. I couldn't install interceptor to Postman in Linux but I installed it to PostmanCanary successfully and it works perfect.
I had a similar problem, though I got the error code CHROME_NOT_INSTALLED as well. The solution was too simple: I had Chromium installed, not Chrome.
As per the troubleshooting tips it could happen if NativeMessagingHosts directory is missing,
this can be solved by creating NativeMessagingHosts directory in ~/.config/google-chrome/ in case of linux.
Reference: https://learning.postman.com/docs/sending-requests/capturing-request-data/interceptor/#troubleshooting-tips
And if desired to use interceptor on any other chrome based browser like brave, do the following
find the utils.js file. in my system the path looked like
/opt/postman/app/resources/app/utils/interceptor/utils.js
change the path of the key named LINUX to the path containing NativeMessagingHosts directory.
const nativeMessagingHosts = {
MACOS: '/Library/Application Support/Google/Chrome/NativeMessagingHosts/',
LINUX: '/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/',
WINDOWS: 'HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts\\'
}
Here I changed the path from /.config/google-chrome/NativeMessagingHosts to /.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/
Now try to install the interceptor again.
Make sure you have the following in the environment variable PATH:
C:\Program Files\Nodejs\
I have face same issue before, and later it got fixed.

Error running node on Yosemite

Apologies in advance if this is a rookie question, I am brand new to Node.js and I am trying to learn. I have successfully installed Node on my laptop and added the folder to my PATH variable:
export PATH=$PATH:/usr/local/bin
However, when I try to run a simple program to test, I get the following error:
-bash: /usr/local/bin/node: Permission denied
I got it to work by granting 755 on /usr/local/bin but I am not sure if that is a good idea as it grants everyone read and execute rights on a bin directory!
Does anyone know of a better way to do this? Is my concern even justified?
Thanks in advance for your kind help.
it is probably an owner issue, check this out: https://docs.npmjs.com/getting-started/fixing-npm-permissions
The last suggestion on using Brew is probably the best option.

Resources