Error on Deploy After Uninstalling Plugin

I got the below error when trying to deploy. This happened after I installed and uninstalled the plugin serverless-client-s3

Any help on how to fix this?


khais-mbp:sms kayef8$ sls deploy
Serverless: Packaging service...
return binding.stat(pathModule._makeLong(path));

Error: ENOENT: no such file or directory, stat '/Users/kayef8/Dropbox/Programming/aws/serverless-gateway/sms/node_modules/.bin/mime'
    at Object.fs.statSync (fs.js:898:18)
    at files.forEach (/usr/local/lib/node_modules/serverless/lib/plugins/package/lib/zipService.js:55:26)
    at Array.forEach (native)
    at WriteStream.output.on (/usr/local/lib/node_modules/serverless/lib/plugins/package/lib/zipService.js:49:13)
    at emitOne (events.js:96:13)
    at WriteStream.emit (events.js:188:7)
    at WriteStream.<anonymous> (fs.js:1937:10)
    at FSReqWrap.oncomplete (fs.js:111:15)
khais-mbp:sms kayef8$

I saw a similar error after adding a dependency. I removed the node_modules directory, ran npm install again and it cleared up.

1 Like