• Register
0 votes
4.2k views

Problem :

I am trying to start the Redux application I just cloned from the GitHub repository.

I tried to run it with the below command

npm start
But I am getting below error
> react-redux@1.0.0 start /home/workspace/assignment
> webpack-dev-server --config ./configs/webpack/webpack.config.development.js
sh: 1: webpack-dev-server: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! react-redux@1.0.0 start: `webpack-dev-server --config ./configs/webpack/webpack.config.development.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the react-redux@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

How can I fix the above error?

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

npm start runs the script that the app maker built for easy starting of a app npm install will install all of the packages in your package.json

So you need to run npm install first

After that run npm start

OR

This issue can also come up when you change the system password but not a same updated on the .npmrc file that exist on following path C:\Users\user_name, so please update your password there also..

Please check on it and also run npm install first and then npm start.

9 7 4
38,600 points

Related questions

0 votes
1 answer 44 views
44 views
Problem: HELP! I need help understanding this error :Local package.json exists, but node_modules missing, did you mean to install?.
asked Mar 6 Wafa Abu Yousef 6.1k points
1 vote
2 answers 282 views
282 views
Problem : I am beginner to the monaca. Currently I am trying to install the monaca with the use of below command. npm install -g monaca But I am facing below errors after executing above command: npm WARN checkPermissions Missing write access to /usr/local/lib/ ... /lib/node_modules' } I am struggling with above error from past couple of days. Can somebody help me in fixing above monaca error?
asked Mar 27, 2020 morrisBson 3.2k points
0 votes
1 answer 897 views
897 views
Problem : I am new to npm and now I am facing strange looking below error “Error: EACCES: permission denied, access '/usr/local/lib/node_modules'” Detailed error as below: npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ... code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' } Have somebody fixed this before?
asked Feb 20, 2020 mphil 2.3k points
0 votes
1 answer 3 views
3 views
Problem: Any suggestions to fix this? > Expected to return a value at the end of arrow function.
asked 1 day ago Junia Phoebe 15.3k points
1 vote
1 answer 45 views
45 views
Problem : Why React JSX file giving Error: TypeError: Cannot read property 'createElement' of undefined at Object.<anonymous> (/Users/me/projects/myproj/test/test_stuff.js:7:7) What does that mean? How to fix this ?
asked Mar 21 Sabbir Hossain 14.6k points
0 votes
1 answer 5 views
5 views
Problem: What did I wrong in my code that I got this message? > Field must be inside a component decorated with reduxform()
asked 4 days ago Irenka Kiri 17.9k points
0 votes
1 answer 5 views
5 views
Problem: Please provide me with a response to this >Uncaught typeerror: cannot read property 'type' of undefined.
asked 4 days ago Rada Gracelynn 6.7k points
0 votes
1 answer 6 views
6 views
Problem: I am getting above error while fetching some data from the API. Following is the code of the action creator where I am trying GET the data: import { FETCH_USER } from './types'; import axios from 'axios'; export const fetchUser = () => async dispatch ... payload: res }); }; Also when I am debugging in the code editor, console is giving me below error: SyntaxError: Unexpected token import
asked May 3 anika11 32.2k points
0 votes
1 answer 13 views
13 views
Problem: Unhandled Rejection (Error): Actions must be plain objects. Use custom middleware for async actions. I wanted to add comments with every posts. So when fetch posts are run I want to call fetch comment API for all post. export function bindComments(postId) { return API.fetchComments(postId).then(comments => { return { type: BIND_COMMENTS, comments, postId } }) }How to achieve that?
asked May 1 anika11 32.2k points