2

When i deploy application, i get error - Error: EROFS: read-only file system, open '/access.log' at Error (native) what is happend? index.js:

var app = require('./src/app');

app.set('port', (process.env.PORT || 5000));

enter code here

app.listen(app.get('port'), function() {
    console.log('Node app is running on port', app.get('port'));
});
1
  • share your. /src/app if possible. Commented Aug 25, 2017 at 9:48

1 Answer 1

1

If you are using yarn, one of the most recent versions (1.0.0rc?) is causing this problem. If you set the yarn version explicity in your package.json engines config to an earlier version, like 0.27.5, that should solve your problem. i.e:

"engines": {
  "node": "8.2.1",
  "yarn": "0.27.5"
},

At least this fixed the issue for me.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.