Skip to content

Instantly share code, notes, and snippets.

@sarvar
Created August 4, 2020 12:11
Show Gist options
  • Save sarvar/186699fa5238bd640a1e750ce98be43c to your computer and use it in GitHub Desktop.
Save sarvar/186699fa5238bd640a1e750ce98be43c to your computer and use it in GitHub Desktop.
How to fix "ReferenceError: primordials is not defined" error
In the same directory where you have package.json create an npm-shrinkwrap.json file with the following contents:
{
"dependencies": {
"graceful-fs": {
"version": "4.2.2"
}
}
}
Run npm install, and don't worry, it'll update npm-shrinkwrap.json with a bunch of content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment