The package.json file in the published npm version 2.0.1 contains the line "main": "./lib".
As the folder ./lib is not included in the npm package, the module cannot be required in node after using npm i diff.
Please change the package.json file for the npm package to "main": "./dist/diff.js" or do other smart things.
The
package.jsonfile in the published npm version 2.0.1 contains the line"main": "./lib".As the folder
./libis not included in the npm package, the module cannot be required in node after usingnpm i diff.Please change the
package.jsonfile for the npm package to"main": "./dist/diff.js"or do other smart things.