What Are “npm run dev” and “npm run prod”

They are indeed the scripts as defined in the package.json file as you discovered. The values are run by your shell (so, for example, bash, zsh, etc. on UNIX-like operating systems). One key thing to note is that the node_modules/.bin directory is added to PATH before executing. So, in the case of the two scripts you’re asking about, cross-env can be found in node_modules/.bin (because it’s almost … Read more

npm – EPERM: operation not permitted on Windows

Running this command was my mistake. npm config set prefix /usr/local Path /usr/local is not for windows. This command changed the prefix variable at ‘C:\Program Files (x86)\Git\local’ To access and make a change to this directory I need to run my cmd as administrator. So I did: Run cmd as administrator Run npm config edit (You will get notepad editor) … Read more

Unable to resolve dependency tree error when installing npm packages

This is not related to an HTTP proxy. You have dependency conflict (incorrect and potentially broken dependency) as it says, so try to run the command with –force, or –legacy-peer-deps. If it doesn’t take effect, the temporary solution is using prior versions of the Node.js (downgrading the Node.js version) as it causes this kind of errors to happen sometimes. Update based on the OP’s update: As … Read more

Why am I getting “Error socket hang up” response?

I recently got this socket hang up problem. I researched for a few days until I found a solution that worked for me. So, maybe this can help. It worked for me to add the http(s)Agent property with keepAlive: true in creating the http client. Here’s an example of what it might look like: This property is responsible for managing the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)