I've just gone to rerun my React app that I've been working on over the last few weeks and get this
C:\Users\matth\Documents\GitHub\LoveFoods-App>npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\matth\Documents\GitHub\LoveFoods-App\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\matth\Documents\GitHub\LoveFoods-App\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\matth\AppData\Roaming\npm-cache\_logs\2020-07-09T22_47_25_246Z-debug.log
Log for the error showing
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\matth\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm#6.14.5
3 info using node#v12.16.3
4 verbose stack Error: ENOENT: no such file or directory, open 'C:\Users\matth\Documents\GitHub\LoveFoods-App\package.json'
5 verbose cwd C:\Users\matth\Documents\GitHub\LoveFoods-App
6 verbose Windows_NT 10.0.18362
7 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\matth\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
8 verbose node v12.16.3
9 verbose npm v6.14.5
10 error code ENOENT
11 error syscall open
12 error path C:\Users\matth\Documents\GitHub\LoveFoods-App\package.json
13 error errno -4058
14 error enoent ENOENT: no such file or directory, open 'C:\Users\matth\Documents\GitHub\LoveFoods-App\package.json'
15 error enoent This is related to npm not being able to find a file.
16 verbose exit [ -4058, true ]
package.json as below
{
"name": "lovefoods-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"#auth0/auth0-react": "^1.0.0",
"#auth0/auth0-spa-js": "^1.10.0",
"#testing-library/jest-dom": "^4.2.4",
"#testing-library/react": "^9.5.0",
"#testing-library/user-event": "^7.2.1",
"firebase": "^7.15.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
The thing is, that the package.json file is sitting in the folder and hasn't been moved at all since I last added to the application.
Anyone have any solutions that can help out at all? I've looked everywhere and can't seem to find anything that works.
Thanks!
Related
I am trying to run "npm run build", earlier versions of project everything was okey but then it starts to giving me errors.
> react-scripts build
Creating an optimized production build...
Failed to compile.
The target environment doesn't support dynamic import() syntax so it's not possible to use external type 'module' within a script
npm ERR! errno 1
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the crmreactclean#0.1.0 build 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:\Users\fatih\AppData\Roaming\npm-cache\_logs\2022-06-06T15_30_41_501Z-debug.log
debug.log:
...
10 silly lifecycle crmreactclean#0.1.0~build: Args: [ '/d /s /c', 'react-scripts build' ]
11 silly lifecycle crmreactclean#0.1.0~build: Returned: code: 1 signal: null
12 info lifecycle crmreactclean#0.1.0~build: Failed to exec build script
13 verbose stack Error: crmreactclean#0.1.0 build: `react-scripts build`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:375:28)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:375:28)
13 verbose stack at maybeClose (internal/child_process.js:1055:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid crmreactclean#0.1.0
15 verbose cwd C:\Users\fatih\Desktop\temiz build\crmreactclean
16 verbose Windows_NT 10.0.19044
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
18 verbose node v14.17.3
19 verbose npm v6.14.13
20 error code ELIFECYCLE
21 error errno 1
22 error crmreactclean#0.1.0 build: `react-scripts build`
22 error Exit status 1
23 error Failed at the crmreactclean#0.1.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ] ...```
And package.json
```{
"name": "crmreactclean",
"version": "0.1.0",
"private": true,
"dependencies": {
"#testing-library/jest-dom": "^5.16.4",
"#testing-library/react": "^13.2.0",
"#testing-library/user-event": "^13.5.0",
"antd": "^4.20.5",
"bootstrap": "^5.1.3",
"bson-objectid": "^2.0.3",
"d3": "^7.4.4",
"jquery": "^3.6.0",
"react-dom": "^18.1.0",
"react-icons": "^4.3.1",
"react-pro-sidebar": "^0.7.1",
"react-scripts": "5.0.1",
"sass": "^1.51.0",
"typescript": "^4.6.4",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"ajv": "^6.12.6",
"autoprefixer": "^10.4.7",
"postcss": "^8.4.14",
"react": "^18.1.0",
"react-router-dom": "^6.3.0",
"react-slidedown": "^2.4.7",
"tailwindcss": "^3.0.24"
}
}```
I have tried so far;
To find a dynamic import in whole folder (including node_modules) but there isn't any. It may caused because of a dependency maybe
To build it on another computer.
To have a clean project and move folders and dependencies one by one.
I believed that tailwind caused this, since it hasn't installed on my last commit yet but I am confused now.
Can you run npm start? If you can, I suggest to modify the browserslist in your package.json file and try to build again:
"browserslist": {
"production": [
"defaults and supports es6-module"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
I met the same issue when I tried to import from a CDN link in my project. npm run works well npm run build throws the exception. It turns out that it's not the fault of Webpack (see this issue); it's just as the exception states that the building target environment doesn't support import(). So if you don't mind losing some (maybe trivial) browser compatibility, you can try this.
I started making a project in Reactjs and i am watching a tutorial from Youtube. After creating my project using "npx create-react-app", when i try to execute "npm start" it shows a bunch of errors:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! covid-19-tracker#0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the covid-19-tracker#0.1.0 start 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:\Users\VIVIDH\AppData\Roaming\npm-cache\_logs\2020-09-10T05_26_49_684Z-debug.log
npm -v = 6.14.8
node -v 14.4.0
I have tried most of the methods but it still isn't working. Here is my package.json file:
{
"name": "covid-19-tracker",
"version": "0.1.0",
"private": true,
"dependencies": {
"#testing-library/jest-dom": "^4.2.4",
"#testing-library/react": "^9.5.0",
"#testing-library/user-event": "^7.2.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
"main": "index.js",
"devDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/Vividh25/covid-19-tracker.git"
},
"author": "Vividh Bhardwaj",
"license": "ISC",
"bugs": {
"url": "https://github.com/Vividh25/covid-19-tracker/issues"
},
"homepage": "https://github.com/Vividh25/covid-19-tracker#readme"
}
Debug.log:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\VIVIDH\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm#6.14.8
3 info using node#v14.4.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle covid-19-tracker#0.1.0~prestart: covid-19-tracker#0.1.0
6 info lifecycle covid-19-tracker#0.1.0~start: covid-19-tracker#0.1.0
7 verbose lifecycle covid-19-tracker#0.1.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle covid-19-tracker#0.1.0~start: PATH: C:\Users\VIVIDH\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\VIVIDH\desktop\Projects\covid-19-tracker\node_modules\.bin;C:\Python38\Scripts\;C:\Python38\;C:\Windows\System32;D:\src\flutter\bin;C:\src\Git\cmd;C:\src\Git\cmd\git.exe;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Windows\System32\ variable;"C:\Users\VIVIDH\AppData\Local\Microsoft\WindowsApps;C:\src\Git\cmd\git.exe;C:\src\Git\cmd";D:\Microsoft VS Code\bin;C:\Users\VIVIDH\AppData\Roaming\npm
9 verbose lifecycle covid-19-tracker#0.1.0~start: CWD: C:\Users\VIVIDH\desktop\Projects\covid-19-tracker
10 silly lifecycle covid-19-tracker#0.1.0~start: Args: [ '/d /s /c', 'react-scripts start' ]
11 silly lifecycle covid-19-tracker#0.1.0~start: Returned: code: 1 signal: null
12 info lifecycle covid-19-tracker#0.1.0~start: Failed to exec start script
13 verbose stack Error: covid-19-tracker#0.1.0 start: `react-scripts start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Users\VIVIDH\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\VIVIDH\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1051:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid covid-19-tracker#0.1.0
15 verbose cwd C:\Users\VIVIDH\desktop\Projects\covid-19-tracker
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\VIVIDH\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v14.4.0
19 verbose npm v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error covid-19-tracker#0.1.0 start: `react-scripts start`
22 error Exit status 1
23 error Failed at the covid-19-tracker#0.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Please help me.
This is a problem of system variable path.
DO this.
Go to > Control Panel\System and Security\System\Advance system setting\Enviroment variable and set system variables path C:\Windows\System32\ variable and restart.
If you're facing the same problem and have tried everything and if it still isn't working then try running the project through yarn. You can install yarn from chocolatey which comes pre-installed when you download nodejs. Here's what you type on cmd :
choco install yarn
After installation:
yarn init
To start project:
yarn create react-app <your project name>
cd <your project name>
yarn start
This worked for me, and hope it does for you :)
I'm pretty new to React and JavaScript, but I've been having a seriously frustrating issue. My NPM start command doesn't seem to work when I run it. I've tried to run npm install after deleting the node_modules folder, but I haven't had any luck. If anyone has a solution I would really appreciate the help.
See the error message below.
ass1#0.1.0 start C:\Users\Chris Conrad\Documents\_GIT\Udemy\React\Section 3 Understanding Base Features & Syntax\ass1
> react-scripts start
'Syntax\ass1\node_modules\.bin\' is not recognized as an internal or external command,
operable program or batch file.
internal/modules/cjs/loader.js:1032
throw err;
^
Error: Cannot find module 'C:\Users\Chris Conrad\Documents\_GIT\Udemy\React\react-scripts\bin\react-scripts.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1029:15)
at Function.Module._load (internal/modules/cjs/loader.js:898:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ass1#0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ass1#0.1.0 start 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:\Users\Chris Conrad\AppData\Roaming\npm-cache\_logs\2020-05-21T00_32_03_270Z-debug.log
PS C:\Users\Chris Conrad\Documents\_GIT\Udemy\React\Section 3 Understanding Base Features & Syntax\ass1>
Below is my package.json
{
"name": "ass1",
"version": "0.1.0",
"private": true,
"dependencies": {
"#testing-library/jest-dom": "^4.2.4",
"#testing-library/react": "^9.5.0",
"#testing-library/user-event": "^7.2.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
I have on local Windows node v8.12.0 and npm v6.4.1. On the server I have node v11.10.0 and npm v6.7.0.
I replaced project in server with backup on local machine, but when I type npm start I have this error.
sh: 1: react-app-rewired: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! manager-polling-app-client#0.1.0 start: `react-app-rewired start`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the manager-polling-app-client#0.1.0 start 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! /root/.npm/_logs/2020-01-14T05_41_00_295Z-debug.log
Is it possible that project does not start on server due to conflict of node version? If yes, should I upgrade node on local or downgrade node on server?
P.S. I think chmod -R 777 will NOT solve problem, because other files on server has the same rights and they start with no problem.
P.P.S. there is my package.json file if it`s needed
{
"name": "manager-polling-app-client",
"version": "0.1.0",
"private": true,
"dependencies": {
"#material-ui/core": "^3.9.3",
"ajv": "^6.9.1",
"ajv-keywords": "^3.4.1",
"antd": "^3.20.0",
"arui-feather": "^12.12.0",
"b64-to-blob": "^1.2.19",
"moment": "^2.22.2",
"pdfmake": "^0.1.53",
"prop-types": "^15.7.2",
"react": "^16.2.0",
"react-awesome-modal": "^2.0.5",
"react-data-export": "^0.5.0",
"react-dom": "^16.2.0",
"react-export-excel": "^0.5.3",
"react-router-dom": "^4.3.1",
"react-scripts": "1.1.1",
"react-select": "^2.4.2",
"xlsx": "^0.14.4"
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"eject": "react-scripts eject"
},
"devDependencies": {
"babel-plugin-import": "^1.11.0",
"react-app-rewire-less": "^2.1.3",
"react-app-rewired": "^1.6.2"
}
}
P.P.P.S. Log file
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm#6.7.0
3 info using node#v11.10.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle manager-polling-app-client#0.1.0~prestart: manager-polling-app- client#0.1.0
6 info lifecycle manager-polling-app-client#0.1.0~start: manager-polling-app-cli ent#0.1.0
7 verbose lifecycle manager-polling-app-client#0.1.0~start: unsafe-perm in lifec ycle true
8 verbose lifecycle manager-polling-app-client#0.1.0~start: PATH: /usr/local/lib /node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/mybpm/manager-po lling-app-client/node_modules/.bin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lo cal/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/game s:/snap/bin
9 verbose lifecycle manager-polling-app-client#0.1.0~start: CWD: /root/mybpm/man ager-polling-app-client
10 silly lifecycle manager-polling-app-client#0.1.0~start: Args: [ '-c', 'react- app-rewired start' ]
11 silly lifecycle manager-polling-app-client#0.1.0~start: Returned: code: 126 signal: null
12 info lifecycle manager-polling-app-client#0.1.0~start: Failed to exec start s cript
13 verbose stack Error: manager-polling-app-client#0.1.0 start: `react-app-rewir ed start`
13 verbose stack Exit status 126
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/np m/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:197:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/np m/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:197:13)
13 verbose stack at maybeClose (internal/child_process.js:984:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_proc ess.js:265:5)
14 verbose pkgid manager-polling-app-client#0.1.0
15 verbose cwd /root/mybpm/manager-polling-app-client
16 verbose Linux 4.4.0-135-generic
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v11.10.0
19 verbose npm v6.7.0
20 error code ELIFECYCLE
21 error errno 126
22 error manager-polling-app-client#0.1.0 start: `react-app-rewired start`
22 error Exit status 126
23 error Failed at the manager-polling-app-client#0.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional log
In my React create-react-app projects npm start is working fine, but the 'build' script fails almost immediately.
The error says failed to compile - 'EISDIR: illegal operation on a directory, read'
I've tried completely uninstalling and reinstalling node & npm using nvm.
I've tried creating a new create-react-app project without editing any of preloaded code, and build still fails.
terminal error message:
Creating an optimized production build...
Failed to compile.
EISDIR: illegal operation on a directory, read
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! personal-website#0.1.0 build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the personal-website#0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Debug log:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/Users/Stew/.nvm/versions/node/v12.7.0/bin/node',
1 verbose cli '/Users/Stew/.nvm/versions/node/v12.7.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build'
1 verbose cli ]
2 info using npm#6.10.2
3 info using node#v12.7.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle personal-website#0.1.0~prebuild: personal-website#0.1.0
6 info lifecycle personal-website#0.1.0~build: personal-website#0.1.0
7 verbose lifecycle personal-website#0.1.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle personal-website#0.1.0~build: PATH: /Users/Stew/.nvm/versions/node/v12.7.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/Stew/Desktop/personal-website/node_modules/.bin:/Users/Stew/.nvm/versions/node/v12.7.0/bin:/usr/bin:/usr/sbin:/bin:/sbin
9 verbose lifecycle personal-website#0.1.0~build: CWD: /Users/Stew/Desktop/personal-website
10 silly lifecycle personal-website#0.1.0~build: Args: [ '-c', 'react-scripts build' ]
11 silly lifecycle personal-website#0.1.0~build: Returned: code: 1 signal: null
12 info lifecycle personal-website#0.1.0~build: Failed to exec build script
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/Users/Stew/.nvm/versions/node/v12.7.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:326:16)
13 verbose stack at EventEmitter.emit (events.js:203:13)
13 verbose stack at ChildProcess.<anonymous> (/Users/Stew/.nvm/versions/node/v12.7.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:203:13)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid personal-website#0.1.0
15 verbose cwd /Users/Stew/Desktop/personal-website
16 verbose Darwin 18.6.0
17 verbose argv "/Users/Stew/.nvm/versions/node/v12.7.0/bin/node" "/Users/Stew/.nvm/versions/node/v12.7.0/bin/npm" "run" "build"
18 verbose node v12.7.0
19 verbose npm v6.10.2
20 error code ELIFECYCLE
21 error errno 1
22 error personal-website#0.1.0 build: `react-scripts build`
22 error Exit status 1
23 error Failed at the personal-website#0.1.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
package.json
{
"name": "personal-website",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
I expect the react project to successfully compile the production build script, but instead it creates the build repository and immediate fails after creating a manifest.json and gives the error message listed above.