Skip to content

Environment Variable got errore [Solved] #22

@nazmulch11

Description

@nazmulch11

`
$ npm run start

d5-extension-example-modules@1.0.0 start
NODE_ENV=development webpack -w --config webpack.config.js --progress

'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
`

For resolve this issue you can follow as below .

npm install cross-env --save-dev

In packagage.json change the code

"scripts": { "start": "cross-env NODE_ENV=development webpack -w --config webpack.config.js --progress", "build": "cross-env NODE_ENV=production webpack --config webpack.config.js --progress", "test": "wp-scripts test-unit-js --config ./test-config/jest.config.js", "zip": "gulp zip", "reset-install": "rm -rf ./package-lock.json ./node_modules/ && npm install" }

The For every plateform it will work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions