Trying to upload some files to a repo. It worked for the last repo that I did, but now for some reason it's not working. Please help! :) Thanks :)
$ git add .
error: open("AppData/Local/Google/Chrome/User Data/Default/Application Cache/Cache/data_0"): Permission denied
error: unable to index file AppData/Local/Google/Chrome/User Data/Default/Application Cache/Cache/data_0
fatal: adding files failed
You are probably out of a git repo: try to cd into you repo.
If you are really in the correct directory, you must change the chmod of your folder.
Related
Hitting npm start in cmd in my project directory is giving the above error.
I tried npm install -g which but that did not work.
Screenshot of cmd
Screenshot of the complete error log
Note:Please make a backup before applying these commmands.
These commands can help:
1)npm cache clean --force
2)remove/delete your node modules folder
3)npm install
4)npm start
I am getting an error while running npm install for a react application:
An unexpected error occurred: "EACCES: permission denied, unlink
'/home/ats/react-app/myapp/node_modules/#babel/helper-module-imports/LICENSE'".
Can someone help me sort this error out?
I had the same problem and I solved it like this:
Remove node_modules folder of your project manually.
Then yarn install or npm install.
Try changing the folder permissions to have the correct ones. If you consider there is no drawback to have the folder with full permissions this command should solve your problem:
sudo chmod -R 777 folderName
Execute as sudo if you are using Linux.
I download and install the last vesrion of MongoDb which is 4.0.2 and i set the correct path variable.
When i want to start the mondoDb service using mongod command i got the following error:
exception in initAndListen: NonExistentPath: Data directory C:\data\db\ not found., terminating
i know that i should create the directory missing, but that directory is automatically created in the following path: C:\Program Files\MongoDB\Server\4.0
I checked the mongod.cfg file and the correct path is already set : dbPath: C:\Program Files\MongoDB\Server\4.0\data
Now how to tell the mongo to look for the folder he thinks is missing in the correct path ?
I had the same issue but after I create the directory C:\data\db\ it just worked.
I too had the same issue after an Windows update, Mongodb did not start automatically. Creating a new directory C:data/db will not be the right way as Mongodb has already configured the directory C:\Program Files\MongoDB\Server\4.0\data as datapath.
Run the following command in cmd as Administrator.
cd C:\Program Files\MongoDB\Server\4.0\bin
mongod --dbpath="C:\Program Files\MongoDB\Server\4.0\data".
This worked for me.
i tried to open CMD in admin mode and the error was gone. Hope this helps someone.
got to C:\Program Files\MongoDB\Server\4.0\bin\mongod.cfg file
update below fields with these values
dbPath: ....\data\db (directory path)
and restart server once
Create the directory/folder like below -
C:\data\db
open cmd at C:\Program Files\MongoDB\Server\6.0\bin and run 'mongod' command like below -
C:\Program Files\MongoDB\Server\6.0\bin>mongod
problem solved!
This solution may solve your problem problem
Make a directory as
sudo mkdir -p /data/db
That will make a directory named as db and than try to start with commands
sudo mongod
If you get another error or problem with starting mongod, You may find problem as
Failed to set up listener: SocketException: Address already in use
If you find that another error than you have to kill the running process of mongod by typing to terminal as
ps ax | grep mongod
Find the mongod running port and kill the process.
sudo kill ps_number
Another way is to make a specefic port when starting mongod as
sudo mongod --port 27018
Per: https://github.com/angular/angular-cli#deploying-the-app-via-github-pages
I ran this initially and it wouldn't work. So I ran:
git add .
git commit -m "Initial deployment"
Then ran:
ng github-pages:deploy --user-page --message "Optional commit message"
It went through a number of steps, and I created the GitHub token and fed it the token. Then it asked for my username, and then it spit out:
Command failed: C:\Windows\system32\cmd.exe /s /c "git clean -f -d"
warning: failed to remove src/app
warning: failed to remove src/assets
There was a permissions error during git file operations, please close any project files/folders and try again. You might also need to return to the master branch manually.
After that, poof, all files gone except for those folders. Also, nothing was uploaded to github.
Fortunately I didn't work a ton on this particular project, but curious as to what I did wrong.
I am using CakePHP 2.5.5 and I have problem while uploading image files, actually I'm getting error when I specified root folder path. My demo code is:
move_uploaded_file($file['tmp_name'], WWW_ROOT . 'img/uploads/posts/' . time().$file['name']);
$this->request->data['Post']['image'.$i] = time().$file['name'];
It is giving me warning:
Warning
(2):move_uploaded_file(/home/username/public_html/cakephpNewApp/app/webroot/img/uploads/posts/14321060823-nature-wallpapers.jpg):
failed to open stream: Permission denied
[APP/Controller/PostsController.php, line 47]
Can anybody, please, help me out for giving proper root folder path?
you need to give full permissions to that specific folder so, that later it can store uploded file
cd /img
sudo chmod -R 777 uploads