Permissions Error - serverless-offline

I keep getting the following error stack when trying to install serverless-offline and cannot find a solution. I’m using Windows Subsystem for Linux with Node Version Manager running Node 10.16.3, npm 6.13.7.

chris:serverless-stack-api$ npm install serverless-offline --save-dev
npm WARN serverless-offline@5.12.1 requires a peer of serverless@>= 1.48.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EACCES: permission denied, rename '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/fsevents' -> '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/.fsevents.DELETE'

npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/cacheable-request
npm ERR! dest /c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/.cacheable-request.DELETE
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/cacheable-request' -> '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/.cacheable-request.DELETE'
npm ERR!  { [Error: EACCES: permission denied, rename '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/cacheable-request' -> '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/.cacheable-request.DELETE']
npm ERR!   cause:
npm ERR!    { Error: EACCES: permission denied, rename '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/cacheable-request' -> '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/.cacheable-request.DELETE'
npm ERR!      errno: -13,
npm ERR!      code: 'EACCES',
npm ERR!      syscall: 'rename',
npm ERR!      path:
npm ERR!       '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/cacheable-request',
npm ERR!      dest:
npm ERR!       '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/.cacheable-request.DELETE' },
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, rename \'/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/cacheable-request\' -> \'/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/.cacheable-request.DELETE\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'rename',
npm ERR!   path:
npm ERR!    '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/cacheable-request',
npm ERR!   dest:
npm ERR!    '/c/Users/Chris Christensen/Documents/dev/react/serverless-stack-api/node_modules/.cacheable-request.DELETE',
npm ERR!   parent: 'serverless-stack-api' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/chris/.npm/_logs/2020-01-29T17_28_21_718Z-debug.log

It is obviously a permissions issue but I haven’t run into this with any other modules. Any help would be appreciated.

Thanks,

Chris

Hmm I’m not totally sure whats causing it. But this plugin needs to do something to support the watch mode. And it sounds like it didn’t have permissions to set that up.