I figured it out and the reasons:
A. escodegen build depend on the 'cjsify' tool which is part of the commonjs-everywhere npm package.
B. The npm installed version of escodegen does not have the tools/ folder, which the build requires.
These details are currently not specified in the README.MD file. I recommend to add the following to the file:
- Download or clone the escodegen repository (https://github.com/estools/escodegen/)
- Run 'npm install -g commonjs-everywhere'
- Run 'npm run-script build' to generate the escodegen.browser.js file.
- Run 'npm run-script build-min' to generate the escodegen.browser.min.js file.
This will make it more clear for new users.
I figured it out and the reasons:
A. escodegen build depend on the 'cjsify' tool which is part of the commonjs-everywhere npm package.
B. The npm installed version of escodegen does not have the tools/ folder, which the build requires.
These details are currently not specified in the README.MD file. I recommend to add the following to the file:
This will make it more clear for new users.