score:3
This error log points out what's happening:
npm install
npm ERR! code EJSONPARSE
npm ERR! file /Users/user/Projects/ReactReduxNetTest/ReactReduxNetTest/ClientApp/package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token } in JSON at position 1528 while parsing near '...sh": ">=4.17.21",
npm ERR! JSON.parse },
npm ERR! JSON.parse "browserslist":...'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
npm
is trying to parse /Users/user/Projects/ReactReduxNetTest/ReactReduxNetTest/ClientApp/package.json
but it can't, because it found an unexpected character in the package.json
file.
This is actually a bug in the .NET templates that have a malformed package.json
file: https://github.com/dotnet/aspnetcore/issues/37520
To fix it, remove the extra comma in ">=4.17.21",
in this line in package.json
:
"lodash": ">=4.17.21",
},
It should look like this:
"lodash": ">=4.17.21"
},
That is the same as the fix Microsoft made in the .NET template here.
Source: stackoverflow.com
Related Query
- How to fix 'The command "npm install" exited with code 1' error when building the ASP.NET Core app with React?
- 'The command "npm install" exited with code 1' error when building an ASP.NET Core app with React on macOS
- When typing yarn start in the terminal an error occurs stating /bin/sh: nodemon: command not found Command failed with exit code 127 comes up
- Publishing React+dotnet core application using Github Actions throwing error MSB3073: The command "npm run build" exited with code 1
- npm install throwing UNMET PEER DEPENDENCY error when package.json has the correct version
- when i try to run the project with library @google/model-viewer by npm start i get this error
- Publish as npm library to github with source code but on install should get the files present in dist
- Error while running the command npm install
- I get the error 'Request failed with status code 400' when I use axios
- i am getting the following error while installing material-UI in vs code with npm WHAT SHOULD I DO?
- am building the facebook gif post project, when i click on the gif it has to dispaly in the text area. But am stuck with type error post.map is nt fun
- Building react app with docker while getting error at run npm install
- Getting an error "A non-serializable value was detected in the state" when using redux toolkit - but NOT with normal redux
- Unable to find an element with the text: "myText" error when using react-testing-library
- Why does react hook throw the act error when used with fetch api?
- React+Laravel 5.8.33 +Axios: errors when registering user with an axios.post request; clarififying the code problem
- Can't deploy React Project. Error is Command failed with exit code 1
- Error when trying to rum npm start command
- Getting npm ERR! exited with error code: 128
- React npm error “npm ERR! code ELIFECYCLE” when I do npm start
- Error trying to install react native, not building correctly when running pod install
- npm error " The header content contains invalid characters" when installing React-Native?
- How to setup sublime 3 with react native so that when you click on the error and it jump to your code?
- NPM error when trying to install React.js TODO-MVC Tutorial
- How do I hide the source code when deploying react app with firebase?
- What is the proper way to escape quotes and slashes when running a Jest test with --collectCoverageFrom from Powershell via npm scripts?
- how to debug code with console.log when the code runs slow
- Type error when using function with the return type NextPage
- When I install any npm package in window this error occur and can not install package properly
- Is there a way to load react library files separately and not in the bundled files when using react with babel, webpack and gulp as building tool?
More Query from same tag
- how can I make div tags as much as number in state(react.js)
- How could I store multiple values to one reusable variable - reactJs
- Typescript 3.2.2 const type doesn´t match output type
- Slider won't show images in ReactJS
- React redirect unit test not rendering expected dom
- Show Api errors with React final form and Axios
- Fetching an image from express API
- Insert a React component into an array
- React Hook useEffect while adding a missing dependency goes into endless loop
- How to display a detailed/specific page in React and Redux?
- How to use state in react project
- Apollo useLazyQuery listen on completion
- Tracking renders in a React app?
- React/Webpack - Migrate from webpack 1 to 4, "webpack.optimize.CommonsChunkPlugin"
- Display filtered objects/arrays created by child component into the parent component
- How can I insert json data from json file into rect and create table?
- How to set maxLength in CkEditor 5 in react js?
- How to detect keydown anywhere on page in a React app?
- How to avoid init function call when first rendered in React.js?
- How can i get data or pass a data from one page to another after submitting a form in reactjs
- The right approach to add window event listeners in the functional component
- How to combine multiple classNames in React?
- How to properly connect a ReactJS component to Redux using react-redux?
- I need to click twice on ,the button to display the component
- React Storybook blank page when run
- What are two arrows in a function in higher order function in React Javascript
- Reactjs - Can't get value from array, undefined
- Conditional react attributes
- React state is undefined
- <Th> has a thin white border on the bottom that I can only remove with border: 0 !important