Questions tagged [npm-start]

For questions relating specifically to the starting of a development server in a Node.js (npm) project.

This runs an arbitrary command specified in the package's "start" property of its "scripts" object. If no "start" property is specified on the "scripts" object, it will run node server.js.

As of npm@2.0.0, you can use custom arguments when executing scripts. Refer to npm-run-script for more details.

To find more information :

678 questions
0
votes
1 answer

npm start run error "var before = prev.prev || {}; TypeError: Cannot read property 'prev' of undefined"

Currently I am trying to run a very basic to do list using node. After setting up package.json and server.js, I ran npm start run, but I am getting a weird error. UPDATE: Here is the basic code and .json file: enter image description here var…
0
votes
1 answer

npm ERROR in package.json file

i have deleted nodeJs ad re-install it again and i used npm cache clean --force and didn't work and i used npm set registry https://registry.npmjs.org/ nothing worked please help me with this if someone fixed the same error before npm ERR! file…
Omar Baz
  • 39
  • 1
  • 9
0
votes
1 answer

AngularJS localhost redirect to IP Address

I started a tutorial regarding AnguarJS for beginners. I have setup my workstation already and ready to test a simple Hello World. Unfortunately, I cannot display this simple message in my localhost. Instead, it display the default IIS image and…
klaydze
  • 941
  • 14
  • 36
0
votes
1 answer

Npm start gives the error

everyone! I am trying to run default task on npm run command on Windows 10. That is an error that I have got while using it. npm ERR! code ELIFECYCLE npm ERR! errno 9 npm ERR! builderLight@0.0.15 start: `bower install && gulp --debug` npm ERR! Exit…
Aleks339
  • 21
  • 1
  • 7
0
votes
2 answers

NPM while starting it shows Cannot find module 'safe-buffer'

I am trying to create a Node Restful API service, but npm is giving me an error while starting. In command prompt I have typed the following : D:\xampp\htdocs\todoListApi>npm run start todolistapi@1.0.0 start D:\xampp\htdocs\todoListApi nodemon…
Kashyap Patel
  • 1,139
  • 1
  • 13
  • 29
0
votes
1 answer

sudo npm start command returning an error no 11

My-MacBook-Pro:MyProject User$ sudo npm start React packager ready. Loading dependency graph...2018-04-20 09:08 node[59306] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22) 2018-04-20 09:08…
Code Hunter
  • 10,075
  • 23
  • 72
  • 102
0
votes
2 answers

trying to run 'create server' with node.js, how to set up the script files would read with npm start

var fs = require('fs'); var http = require('http'); var ROOT ='./view/index.html'; http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); fs.readFile(ROOT, function (err,data){ if (err) { …
황정욱
  • 11
  • 3
0
votes
1 answer

Create React Native app could not installed

As we know Create React Native App is the easiest way to start building a new React Native application. But I tried to install this but I got failed. I am using Node v8.10.0 and npm v4.2.0. Error Attached below. I stucked here. Final Error
AWE
  • 213
  • 1
  • 4
  • 12
0
votes
0 answers

Getting error 404 while running npm start

I am new to Angular2 and was basically trying out an simple Hello World kind of an application. When I open command prompt in the folder directory and type npm start, it opens a browser window showing http 404 error. I know it is unable to find…
subhrendu
  • 147
  • 1
  • 2
  • 19
0
votes
1 answer

Electron threw a compile error and Windows command prompt goes non writable

So my code had an invalid syntax, which I was trying out to see if it works and while compiling I got App threw an error during load. Now in the command-prompt the error is listed in detail with the cursor still blinking but NOT WRITABLE. Closing,…
Hari Harker
  • 702
  • 1
  • 12
  • 29
0
votes
1 answer

how to start azure nodejs app locally

I have a node.js with express azure project that I created through visual studio 2015 and it published on Azure with no problem running from vs with no issue as well. When I try to run it through the npm command line I got an error that it can't…
AshOoO
  • 1,108
  • 3
  • 13
  • 34
0
votes
0 answers

Error while trying to run 'npm start'

I am getting the below error while trying to run npm start without updating the node version nor the npm version. ERROR npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Work\node-v6.10.3-win-x64\node-v6.10.3-win-x64\node.exe" " …
0
votes
0 answers

How can I prevent multiple applications being served at once by AngularCLI?

Using Angular CLI: 1.5.2 Node: 6.10.1 in a Mac OS Sierra, I have installed several web applications so far. Anytime I do ng serve. All of the applications that I have installed in the past are served. I guess it's the normal behavior. But I don't…
ElPiter
  • 4,046
  • 9
  • 51
  • 80
0
votes
1 answer

Issue with npm start command

While setting the environment for the Vue.js app I have encountered the issue with npm start related to node_modules and nodemon. I am getting this error in the console when running the $npm start command: $ npm start > server@1.0.0 start…
xhopkinsx
  • 1
  • 2
0
votes
1 answer

Angular2 QuickStart npm start is not working on it's next day

I have tried Angular2 QuickStart. To execute this I have used npm start. On it's first try it is working fine. But on it's next day when I try to run using npm start it throws an error like this: 0 info it worked if it ends with ok 1 verbose cli […
Prakash Pazhanisamy
  • 997
  • 1
  • 15
  • 25