-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Description
Ava has permissions issues when trying to read/write the node_modules/.cache folder and sub folders. Manually creating the folders and running ava again will cause the next fs operation to fail.
Running ava with sudo (sudo ava) will let ava run as expected.
Is it intended for ava to run with su permissions or require the user to give ava rw permissions to the .cache/ava folder?
Test Source
import test from 'ava';
test('smoke test', (t) => {
t.deepEqual(true, true)
});Error Message & Stack Trace
# EACCES: permission denied, mkdir '/home/ton/Documents/ng2-frontend/node_modules/.cache'
not ok 1 - EACCES: permission denied, mkdir '/home/ton/Documents/ng2-frontend/node_modules/.cache'
---
name: Error
at: at Object.fs.mkdirSync (fs.js:846:18)
...
1..0
# tests 0
# pass 0
# fail 1
Config
Copy the relevant section from package.json:
{
"ava": {
"files": [
"app/**/*-test.js"
],
"source": [
"!app/**/*-test.js",
"app/**/*.js"
],
"concurrency": 5,
"failFast": true,
"tap": true,
"powerAssert": false
}
}Command-Line Arguments
Copy your npm build scripts or the ava command used:
ava
// no command line arguments are passed
Relevant Links
- If your project is public, link to the repo so we can investigate directly.
- BONUS POINTS: Create a minimal reproduction and upload it to GitHub. This will get you the fastest support.
Environment
Tell us which operating system you are using, as well as which versions of Node.js, npm, and AVA. Run the following to get it quickly:
node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v7.1.0
linux 4.4.0-47-generic
ava --version
0.17.0
npm --version
4.0.2
Metadata
Metadata
Assignees
Labels
No labels