You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused because meme.js requires shell.js when it's run as a script via package.json. However, since you just ran npm run clean:all, shelljs has been removed so meme.js throws the error.
PROPOSED FIX
Use require.resolve() to trap error, if trapping the regular require() doesn't work. Print a nice error message about needing to run npm ci first.
The text was updated successfully, but these errors were encountered:
In GitLab by @daveseah on Apr 1, 2019, 16:45
to reproduce, run
npm run clean:all
twice.error:
This is caused because
meme.js
requiresshell.js
when it's run as a script viapackage.json
. However, since you just rannpm run clean:all
, shelljs has been removed someme.js
throws the error.PROPOSED FIX
Use
require.resolve()
to trap error, if trapping the regularrequire()
doesn't work. Print a nice error message about needing to runnpm ci
first.The text was updated successfully, but these errors were encountered: