• Register
0 votes
3.1k 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

1 vote
2 answers 161 views
161 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 697 views
697 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
2 answers 923 views
923 views
Problem : Facing below error: Unhandled Rejection (Error): Actions must be plain objects. Use custom middleware for async actions. I wanted to add comments with all posts. So when fetch posts are run I want to call fetch comment API for every post. export function ... API.fetchComments(postAllId).then(comments => {     return {       type: BIND_COMMENTS,       comments,       posAlltId     }  }) }
asked Jan 17, 2020 jwilliam 3.9k points
0 votes
2 answers 512 views
512 views
Problem : I want to to run my NodeJS version with the nvm but getting following error: $ nvm use v4.2.4 nvm is not compatible with the npm config "prefix" option: currently set to "/Users/z/.npm-global"Run `npm config delete prefix` or `nvm use --delete- ... it. I have set the prefix on purpose to avoid the sudo npm How can I use nvm without losing the prefix for my globally installed packages?
asked Nov 29, 2019 alecxe 7.5k points
0 votes
1 answer 7 views
7 views
I want to know how to pass data from child component to its parent in ReactJS? Here is my child component: export const SelectLanguage = React.createClass({ getInitialState: function(){ return{ selectedCode: '', selectedLanguage: '', }; }, handleLangChange: function (e) { ... you have any idea what I’m doing wrong? Please never mind the json file as it has nothing to do with the problem.
asked Jan 14 khaled 200 points
0 votes
1 answer 414 views
414 views
Problem : I have created the new React application by just using create-react-app and I amtrying to write a unit test to the component named "MessageBox" that I have created in the application. I have also added the file under my 'src' folder named 'setupTests.js ... an adapter, you should call msenzyme.configure({ > adapter: new Adapter() }) Does someone know how can I solve this problem?
asked Dec 19, 2019 alecxe 7.5k points
1 vote
1 answer 40 views
40 views
Problem: I have gained fundamental knowledge on Angular2. I am taking help of online tutorials to learn Angular2. I am trying to create the angular 2 App with the angular cli I have written below command in my cmd: npm install angular-cli -g After above command I am ... an error . I am unable to debug above error. I need Angular2 expert who can help me in fixing above Angular2 error for me.
asked Jun 5, 2020 Martin K 6.6k points
0 votes
1 answer 55 views
55 views
Problem: I am very beginner to Angular. I have just recently started learning Angular 4, and as part of the learning process I did the following steps: Install Node.js (version 8). Then I ran following command: npm install -g @angular/cli After that I created a new ... runs my project. Now I am trying to understand here why did I need to do npm install and what did it install on my machine?
asked Aug 14, 2020 Raphael Pacheco 4.9k points