python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why does running "npm run <script>" as root switch user?
I setup a new project inside an alpine image (node:16-alpine), in /app2, with the following structure:
- node_modules
- .bin
- dummy
- package.json
package.json:
{
...
"scripts": ...
Kicsi
Votes: 0
Answers: 1
How can I get live-reload on a local npm package in a monorepo?
I'm setting up a monorepo workspace for a Vue 3 (vite + ts), cloud functions, & shared-lib (shared functions and ts interfaces etc.).
I can get the import of my local shared-lib folder to work. I ...

CVE
Votes: 0
Answers: 1
Run npm script with optional params
I want to run a npm script which accepts optional params, and has a fallback for a default values for params that were not passed,
for example:
I have this "example" script defined in my pac...
Michael Merjanov
Votes: 0
Answers: 1
Clearing node_modules in a preinstall script breaks npm install
I am confused about the behavior of the npm preinstall hook.
In my package.json, I added a preinstall script:
"preinstall": "./scripts/preinstall.sh"
And here's preinstall.sh:
#!/...
Patrick Kenny
Votes: 0
Answers: 0