I am on way to create an expressjs snap (first time), but my application wants to write to a file. When I try that it’s giving a read only file system error.
Error writing sample file [Error: EROFS: read-only file system, open ‘/snap/sample-express/x1/lib/node_modules/sample-express/sample.txt’]
my snapcraft file looks like this:
version: '1.0' summary: Sample snap description: | Desc base: core20 grade: devel confinement: devmode parts: sample-express: plugin: npm npm-node-version: 15.13.0 source: . apps: sample-express: command: bin/sample-express
Have anyone faced this issue before? Any help in this regard will be awesome.