#NPM run build: test or yarn build: Test
Dotenv cli needs to be installed before use( https://github.com/entropitor/dotenv-cli )Otherwise, the following error will be reported:
dotenv -e .env.development craco build
'dotenv' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:test: `dotenv -e .env.development craco build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\node\node_cache\_logs\2021-09-01T02_25_42_552Z-debug.log
To install global dotenv cli:
Execute command: yarn global add dotenv-cli perhaps npm install -g dotenv-cli
Installation complete:
Execute again as shown in the figure:
Packaging complete
Read More:
- Error reporting processing of pyinstaller packaging geopandas environment
- 【react】 tsconfig.json Configuration of react JSX error reporting solution in
- Using Mocha to test can not find module ‘. /build/release/scrypt’ (Fixed)
- Solution of server connection reused (test environment)
- The local program cannot access the test environment redis cluster through public IP_ compromise
- webstorm npm install –save –save-exact –loglevel error react react-dom react-scripts has failed.
- Mac – build. Net development environment
- Win7 system build PHP + MySQL + Apache environment + deploy ECSHOP project
- react Error: Unable to resolve module mobx-react
- Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit
- [W xx:xx:xx.xxx NotebookApp] 404 GET/static/components/react/react-dom.production.min.js (::1)
- NPM run build failed to package err! Missing script: build
- Anaconda create environment, delete environment, activate environment, exit environment
- import org.junit.Test And @ test error reporting — solutions
- The problem encountered in pyinstaller packaging “failed to execute script × *”
- An error is reported when using react app rewired to start the react project
- Error in unity URP packaging Android shader
- Python normality test: test whether the data obey the normal distribution
- Failed to load plugin react: cannot find module ‘eslint plugin react’ appears when running Vue project‘
- react Error: Objects are not valid as a React child (found: object with keys {username, password})