question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build process fails when an exercise use a NodeJS module

See original GitHub issue

A 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:closed
  • Created 8 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rchavarriacommented, May 21, 2017

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 make Makefile smarter.

0reactions
stale[bot]commented, Sep 20, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found