In Ubuntu I have this:$ DEBUG=* node server.jsBut in FreeBSD I try this and got the following error:# setenv DEBUG * node server.jssetenv: Too many arguments.How can I do this?
Set environment variable and run node.js server
freebsd;node.js
It seems you are confusing setenv with env. The setenv builtin in csh and sh is only used to define the value of environment variables, it does not take a command to be executed like env does.Typical usage for setenv is: setenv [VAR [word]]while typical usage for env is:env [VAR=word ...] [command [argument ...]]for instance:env DEBUG=* node server.js