Build process fails when an exercise use a NodeJS module
See original GitHub issueA nice way to add dependencies to some exercises would be to add those to the package.json
file.
If a new dependency is added, and an individual exercise uses that dependency in the specs file (i.e.: tests need to use an external library), running tests inside the exercise folder works. But the build process (make
command) fails.
Find a way to use package.json
dependencies in specs files when running the make
command.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >Process | Node.js v19.3.0 Documentation
The process.config property returns a frozen Object containing the JavaScript representation of the configure options used to compile the current Node.js ...
Read more >Top 10 Most Common Node.js Developer Mistakes - Toptal
Often, reasons for such criticisms are rooted in how developers use/misuse the language. This article explores ten common mistakes that Node.js developers ...
Read more >How To Use Node.js Modules with npm and package.json
In this tutorial, you will manage packages with npm. The first step will be to create and understand the package.json file. You will...
Read more >Troubleshooting Node.js Deploys - Heroku Dev Center
Sometimes installing a dependency or running a build locally completes successfully, and when it gets to Heroku, the build will fail. If you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep. I agree we should make user’s live as easy as possible.
I know it’s a bit tedious to run
npm install
on each exercise. But having independent exercises is a key point of exercism. So, I’ll close #235 with won’t fix and we can have some ideas about how to makeMakefile
smarter.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.