Here is what had happened.
I was setting up my new work laptop.
I succeeded to clone the remote repository into local.
However, the previous employee who used it before me had set his windows user
and somehow it seemed loads of environment variables were set to his windows user including nodejs and npm.
So I reinstalled nodeJS and made sure that the installing location was set to Program files not to user Appdata.
I had no problem to run npm out of his user directory, however I could not fucking run nodemon and didn't know why.
After few researches, I figured out that I should have installed nodemon with global option.........
npm install -g nodemon
If the problem was it, I would have not write this blog post after so long time not bitting my laziness to come back here.
Nevertheless of my long journey just to run nodemon instead of moving my project directory into his user file(that felt like being defeated, not sure if it was by his weird userName or myself seeking for an easy and not teaching myself.. maybe both.), I got to have this authentication error. Honestly i don't remember how exact error code or message it was. Anyways the error message wanted to tell me that the nodemon was installed in his userfile and I have no right to access. (by the way this fucking protective user authentication stuff in windows has been kicking my ass a lot. Though it's not really my pc...I'm not even sure how much I can ruin it too lol just gotta be cautious)
Long story short, I resolved it by running following command lines in the link below.
https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts
goodluck
댓글
댓글 쓰기