I have got the following error while I tried to command :
$ npm run dev
I have also used nodejs cmd, git and also having administritive privileges with the cmd.
Error is like following:
D:\IIT Samester\KAZ\ReactJSProjects\GitFrom\webpack-example-master\webpack-examp
le-master>npm run dev
> webpack-example#0.0.0 dev D:\IIT Samester\KAZ\ReactJSProjects\GitFrom\webpack-example-master\webpack-example-master
> webpack-dev-server --devtool eval --progress --colors --hot --content-base build/
70% 1/1 build modulesevents.js:85
throw er; // Unhandled 'error' event
^
Error: listen EACCES
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1129:19)
at listen (net.js:1172:10)
at net.js:1270:9
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:81:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:99:10)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "node" "C:\\Users\\hp\\AppData\\Roaming\\npm\\node_modules\\npm\\b
in\\npm-cli.js" "run" "dev"
npm ERR! node v0.12.2
npm ERR! npm v2.7.6
npm ERR! code ELIFECYCLE
npm ERR! webpack-example#0.0.0 dev: `webpack-dev-server --devtool eval --progress --colors --hot --content-base build/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webpack-example#0.0.0 dev script 'webpack-dev-server--devtool eval --progress --colors --hot --content-base build/'.
npm ERR! This is most likely a problem with the webpack-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack-dev-server --devtool eval --progress --colors --hot --content-base build/
npm ERR! You can get their info via:
npm ERR! npm owner ls webpack-example
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\IIT Samester\KAZ\ReactJSProjects\GitFrom\webpack-example-master\
webpack-example-master\npm-debug.log
D:\IIT Samester\KAZ\ReactJSProjects\GitFrom\webpack-example-master\webpack-example-master>
Please do help to solve the issue.
Yes, I have solved the issue by self.
Its a problem on the port, nothing else.
I have other program that works on port 8080.
webpack-dev-server also wants to use that port by default.
So I have just change the port number from 8080 to 8081 (can be anything valid other) in the ProjectFolder \node_modules\webpack-dev-server\bin\webpack-dev-server.js file.
Anothe solution is that you can stop that program working on port 8080.
Thank you :)
Related
I have been unable to run the command npm run build unsuccessfully, I get the following issue:
> #myer-online/frontend#1.0.0 build /Users/surbhimidha/myer-online
> cross-env NODE_ENV=production next build
sh: cross-env: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! #myer-online/frontend#1.0.0 build: `cross-env NODE_ENV=production next build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the #myer-online/frontend#1.0.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! /Users/surbhimidha/.npm/_logs/2021-02-10T08_06_42_019Z-debug.log
I am using the following versions of node and npm:
npm: 6.14.8
node: 14.13.1
I have tried to delete node modules and run npm i but still I get the above error when I run npm run build
I noticed that cross-env is not present under /node_modules/.bin
Please help!
I am installing vuejs following the github link, i did all steps like it is described, but when i try to run npm dev i have this stacktrace full of errors:
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! file C:\WINDOWS\system32\cmd.exe;C:\PostgreSQL\9.2\bin; C:\PostgreSQL\9.2\lib
npm ERR! path C:\WINDOWS\system32\cmd.exe;C:\PostgreSQL\9.2\bin; C:\PostgreSQL\9.2\lib
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe;C:\PostgreSQL\9.2\bin; C:\PostgreSQL\9.2\lib
npm ERR! floraapp#1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --open --hot`
npm ERR! spawn C:\WINDOWS\system32\cmd.exe;C:\PostgreSQL\9.2\bin; C:\PostgreSQL\9.2\lib ENOENT
npm ERR!
npm ERR! Failed at the floraapp#1.0.0 dev script 'cross-env NODE_ENV=development webpack-dev-server --open --hot'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the floraapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=development webpack-dev-server --open --hot
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs floraapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls floraapp
npm ERR! There is likely additional logging output above.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! floraapp#1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --open --hot`
npm ERR! Exit status -4058
npm ERR!
npm ERR! Failed at the floraapp#1.0.0 dev script 'cross-env NODE_ENV=development webpack-dev-server --open --hot'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the floraapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=development webpack-dev-server --open --hot
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs floraapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls floraapp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\FilipeCosta\Desktop\backOffice-FloraApp\npm-debug.log
my operative system is windows 10, any help appreciated :)
i am getting the following error on npm start command,
angular-quickstart#1.0.0 prestart C:\Project\myapp
npm run build
angular-quickstart#1.0.0 build C:\Project\myapp
tsc -p src/
angular-quickstart#1.0.0 start C:\Project\myapp
concurrently "npm run build:watch" "npm run serve"
Error occured when executing command: npm run build:watch
Error: Unable to detect platform shell type. Please set SHELL_EXECUTE_FLAG env variable.
at detectExecuteFlag (C:\Project\myapp\node_modules\spawn-default-shell\src\get-shell.js:29:9)
at getShell (C:\Project\myapp\node_modules\spawn-default-shell\src\get-shell.js:37:18)
at Object.spawn (C:\Project\myapp\node_modules\spawn-default-shell\src\index.js:5:24)
at C:\Project\myapp\node_modules\concurrently\src\main.js:192:34
at arrayMap (C:\Project\myapp\node_modules\lodash\lodash.js:660:23)
at Function.map (C:\Project\myapp\node_modules\lodash\lodash.js:9571:14)
at run (C:\Project\myapp\node_modules\concurrently\src\main.js:181:22)
at main (C:\Project\myapp\node_modules\concurrently\src\main.js:61:5)
at Object. (C:\Project\myapp\node_modules\concurrently\src\main.js:421:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:418:7)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! angular-quickstart#1.0.0 start: concurrently "npm run build:watch" "npm run serve"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-quickstart#1.0.0 start script 'concurrently "npm run build:watch" "npm run serve"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! concurrently "npm run build:watch" "npm run serve"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Project\myapp\npm-debug.log
Try to update your nodejs refer to these answers:
How do I update node and npm on windows?
If the error still persist use this link:
'concurently' is not recognized as an internal or external command, operable program or batch file
I'm using Node 6.3 and npm 3.10.3
I'm successfully able to run the command of npm install but when i execute npm start I get the following error
I'm referring to this github repo https://github.com/aurelia/skeleton-navigation/tree/master/skeleton-typescript-webpack
Error is
npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program
Files\nodejs\node.exe" "C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "server:dev"
npm ERR! node v6.3.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE
npm ERR! aurelia-skeleton-navigation-webpack#1.0.0-beta.3.0.1
server:dev: cross-env NODE_ENV=development node
./node_modules/webpack-dev-server/bin/webpack-dev-server --inline
--progress --profile --watch npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the aurelia-skeleton-navigation-webpack#1.0.0-beta.3.0.1
server:dev script 'cross-env NODE_ENV=development node
./node_modules/webpack-dev-server/bin/webpack-dev-server --inline
--progress --profile --watch'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most
likely a problem with the aurelia-skeleton-navigation-webpack package,
npm ERR! not with npm itself. npm ERR! Tell the author that this fails
on your system: npm ERR! cross-env NODE_ENV=development node
./node_modules/webpack-dev-server/bin/webpack-dev-server --inline
--progress --profile --watch npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs
aurelia-skeleton-navigation-webpack npm ERR! Or if that isn't
available, you can get their info via: npm ERR! npm owner ls
aurelia-skeleton-navigation-webpack npm ERR! There is likely
additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\Afzal.Qureshi\My
Projects\AureliaTs\skeleton-navigation-master\skeleton-typescript-webpack\npm-debug.log
npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program
Files\nodejs\node.exe" "C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR!
node v6.3.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR!
aurelia-skeleton-navigation-webpack#1.0.0-beta.3.0.1 start: npm run
server:dev npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the
aurelia-skeleton-navigation-webpack#1.0.0-beta.3.0.1 start script 'npm
run server:dev'. npm ERR! Make sure you have the latest version of
node.js and npm installed. npm ERR! If you do, this is most likely a
problem with the aurelia-skeleton-navigation-webpack package, npm ERR!
not with npm itself. npm ERR! Tell the author that this fails on your
system: npm ERR! npm run server:dev npm ERR! You can get
information on how to open an issue for this project with: npm ERR!
npm bugs aurelia-skeleton-navigation-webpack npm ERR! Or if that isn't
available, you can get their info via: npm ERR! npm owner ls
aurelia-skeleton-navigation-webpack npm ERR! There is likely
additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\My
Projects\AureliaTs\skeleton-navigation-master\skeleton-typescript-webpack\npm-debug.log
It seems that you're using the nightly version of the skeleton. Be sure to pull a release version.
https://github.com/aurelia/skeleton-navigation/tree/1.0.0-beta.3.0.1/skeleton-typescript-webpack
I tried to install npm on my local machine (Mac OS) but when I run npm start, it keeps giving me this error with node_sass. Even when I run
sudo npm install node_sass
it doesn't fix the problem.
Error: You probably need to execute `npm install` to install brunch plugins.
Error: `/Users/AnhLe/bloc/anh-jams/node_modules/sass-brunch/node_modules/node-sass/bin/darwin-x64-v8-3.28/binding.node` is missing. Try reinstalling `node-sass`?
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.0
npm ERR! npm v2.7.3
npm ERR! code ELIFECYCLE
npm ERR! bloc-rdio-skeleton#0.0.1 start: `brunch watch --server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bloc-rdio-skeleton#0.0.1 start script 'brunch watch --server'.
npm ERR! This is most likely a problem with the bloc-rdio-skeleton package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! brunch watch --server
npm ERR! You can get their info via:
npm ERR! npm owner ls bloc-rdio-skeleton
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/AnhLe/bloc/anh-jams/npm-debug.log
Looked around and these people are experiencing a similar error due to binding.node missing from SASS.
https://github.com/dlmanning/gulp-sass/issues/185