Closed ericmorand closed 5 months ago
The node version to build the project as you can check in https://github.com/fkling/astexplorer/blob/master/.tool-versions is LTS Gallium (which is node v16) and comes with npm 8.x.
When you change your node version with n or nvm you can build the project properly.
but btw you should run yarn, not npm
Can I propose that this is explained in the README?
Right now, following the documentation is not enough to work on the project:
Build your own version for development Clone the repository. Go to website/. Install all dependencies with yarn install (you can run npm install as well). Run yarn run build for the final minimized version. Run yarn run watch for incremental builds. Run yarn start to start a simple static webserver.
Also, the documentation is very clear about the fact that yarn is not mandatory:
(you can run npm install as well)
I've updated the README to mention node v16 and to remove mentions of npm
. It may still work but I only used yarn
in the last years so I can't make guarantees.
Describe the bug
When executing
npm install
in thewebsite
directory - as explained by the documentation - the following error is thrown bynpm
:This happens with npm 10 - I didn't test with previous versions but considering the error it is likely to happen with every version of npm above 6.
To Reproduce Steps to reproduce the behavior:
npm install
Expected behavior
Project dependencies are successfully installed.