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.

node_modules for real?

See original GitHub issue

I see node_modules/ included in the project while it’s considered bad practice to have it in git repo. Is is the only way to make sure Node runs well in actions with correct dependencies? Can I install the packages during(or before) action is really running?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:16
  • Comments:12

github_iconTop GitHub Comments

6reactions
adamhensoncommented, Nov 4, 2020

@123aswin123 in your example you are consuming an action from a workflow which is not the same as creating an action. This project is an example of how to create a JavaScript GitHub Action. The problem this issue points out is the inability to create an action without including node_modules.

5reactions
adamhensoncommented, Dec 9, 2021

Thanks @rachmari. Yes I tried NCC, but it threw an error in a certain project… so it seems unstable. Anyways, thanks for your responses. It’s not the end of the world… just inconvenient and not ideal especially as an open source project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js Modules - TutorialsTeacher
Module in Node.js is a simple or complex functionality organized in a single or multiple JavaScript files which can be reused throughout your...
Read more >
CommonJS modules | Node.js v19.3.0 Documentation
CommonJS modules are the original way to package JavaScript code for Node.js. Node.js also supports the ECMAScript modules standard used by browsers and ......
Read more >
How To Use Node.js Modules with npm and package.json
First, you will create a package.json file to store useful metadata about the project and help you manage the project's dependent Node.js ...
Read more >
Node.js Modules - GeeksforGeeks
In Node.js, Modules are the blocks of encapsulated code that communicates with an external application on the basis of their related ...
Read more >
Understanding dependency management with Node Modules
A module or a collection of modules can be published as a package to a public or private registry for consumption. The main...
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