Reputation: 1122
I am trying to configure the local environment inside my project.
i am running npm run dev
command.
here is my package.json
As you can see i am using env-cmd
package.
But when i run the command window is giving me this error.
This file does not have an app associated with it for performing this action...
Why am i getting this error?
Upvotes: 0
Views: 2140
Reputation: 16505
According to this post:
"scripts": {
"start": "react-scripts start",
"start:staging": "env-cmd -f .env.staging react-scripts start",
"start:prod": "env-cmd -f .env.production react-scripts start",
"build:staging": "env-cmd -f .env.staging react-scripts build",
"build:prod": "env-cmd -f .env.production react-scripts build"
}
You are missing the -f parameter
Upvotes: 1