Can't run project vue-cli via npm run serve - node.js

I have windows7 so, following requirements Vue-CLI I installed version Node 12.0.0
Installed vue-cli: npm install -g #vue/cli
Version: 5.4.0
Create project - vue create hello-world
Try to run it all possible commands: npm run serve, npx vue-cli-service serve, vue-cli-service serve.
But I got an error evertime:
https://i.stack.imgur.com/MprDr.png
(sorry, my reputation can't allow me to post pictures)
Try to run via GUI UI, and got at the same
https://i.stack.imgur.com/GqqQJ.png
Log file:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'serve'
1 verbose cli ]
2 info using npm#6.9.0
3 info using node#v12.0.0
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle hello-world#0.1.0~preserve: hello-world#0.1.0
6 info lifecycle hello-world#0.1.0~serve: hello-world#0.1.0
7 verbose lifecycle hello-world#0.1.0~serve: unsafe-perm in lifecycle true
8 verbose lifecycle hello-world#0.1.0~serve: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Администратор\Desktop\Учеба\Vue\hello-world\node_modules\.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Brackets\command;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\Администратор\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\Администратор\AppData\Local\Programs\Python\Python37\;C:\Program Files\heroku\bin;C:\Users\Администратор\AppData\Roaming\npm
9 verbose lifecycle hello-world#0.1.0~serve: CWD: C:\Users\Администратор\Desktop\Учеба\Vue\hello-world
10 silly lifecycle hello-world#0.1.0~serve: Args: [ '/d /s /c', 'vue-cli-service serve' ]
11 silly lifecycle hello-world#0.1.0~serve: Returned: code: 3221225477 signal: null
12 info lifecycle hello-world#0.1.0~serve: Failed to exec serve script
13 verbose stack Error: hello-world#0.1.0 serve: `vue-cli-service serve`
13 verbose stack Exit status 3221225477
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:196:13)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:196:13)
13 verbose stack at maybeClose (internal/child_process.js:1000:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:5)
14 verbose pkgid hello-world#0.1.0
15 verbose cwd C:\Users\Администратор\Desktop\Учеба\Vue\hello-world
16 verbose Windows_NT 6.1.7601
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
18 verbose node v12.0.0
19 verbose npm v6.9.0
20 error code ELIFECYCLE
21 error errno 3221225477
22 error hello-world#0.1.0 serve: `vue-cli-service serve`
22 error Exit status 3221225477
23 error Failed at the hello-world#0.1.0 serve script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 3221225477, true ]

Related

"npm run hot" throwing error after installing npm and vue

Below is a complete log of the error-
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'hot'
1 verbose cli ]
2 info using npm#6.12.0
3 info using node#v12.13.0
4 verbose run-script [ 'prehot', 'hot', 'posthot' ]
5 info lifecycle #~prehot: #
6 info lifecycle #~hot: #
7 verbose lifecycle #~hot: unsafe-perm in lifecycle true
8 verbose lifecycle #~hot: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\xampp\htdocs\todolist\node_modules\.bin;C:\xampp\htdocs\todolist\node_modules\.bin;;D:\Anaconda;D:\Anaconda\Library\mingw-w64\bin;D:\Anaconda\Library\usr\bin;D:\Anaconda\Library\bin;D:\Anaconda\Scripts;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\xampp\mysql\bin;C:\xampp\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files\nodejs\;C:\Program Files\Java\jdk-13.0.2\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Users\Asus\AppData\Roaming\Composer\vendor\bin;C:\Users\Asus\AppData\Roaming\npm;D:\PyCharm Community Edition 2019.3.3\bin;
9 verbose lifecycle #~hot: CWD: C:\xampp\htdocs\todolist
10 silly lifecycle #~hot: Args: [ '/d /s /c', 'mix watch --hot' ]
11 silly lifecycle #~hot: Returned: code: 1 signal: null
12 info lifecycle #~hot: Failed to exec hot script
13 verbose stack Error: # hot: `mix watch --hot`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:210:5)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:210:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid #
15 verbose cwd C:\xampp\htdocs\todolist
16 verbose Windows_NT 10.0.17763
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "hot"
18 verbose node v12.13.0
19 verbose npm v6.12.0
20 error code ELIFECYCLE
21 error errno 1
22 error # hot: `mix watch --hot`
22 error Exit status 1
23 error Failed at the # hot script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
I get this error when i run the command "npm run hot" after installing npm and vue and setting up everything needed for vue.js

Npm doesn't work There is no problem with my NPM. (This is probably not a problem with npm. There is likely additional logging output above.)

Hello I can't start my Vue project.
I can run my vue project on my laptop but when I try to run on my dekstop it doesn't work.
I got a error. This is the error:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'serve'
1 verbose cli ]
2 info using npm#6.13.4
3 info using node#v12.16.1
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle vuefire#0.1.0~preserve: vuefire#0.1.0
6 info lifecycle vuefire#0.1.0~serve: vuefire#0.1.0
7 verbose lifecycle vuefire#0.1.0~serve: unsafe-perm in lifecycle true
8 verbose lifecycle vuefire#0.1.0~serve: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\xampp\htdocs\GitHub\stageFinder\node_modules\.bin;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Users\Mustafa Bolat\AppData\Local\GitHubDesktop\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\Mustafa Bolat\AppData\Local\Programs\Python\Python37-32\Scripts\;C:\Users\Mustafa Bolat\AppData\Local\Programs\Python\Python37-32\;C:\Users\Mustafa Bolat\AppData\Local\GitHubDesktop\bin;C:\Users\Mustafa Bolat\AppData\Local\Programs\Microsoft VS Code\bin;C:\flutter\bin;"C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\Windows\System32;";C:\Users\Mustafa Bolat\AppData\Roaming\npm
9 verbose lifecycle vuefire#0.1.0~serve: CWD: C:\xampp\htdocs\GitHub\stageFinder
10 silly lifecycle vuefire#0.1.0~serve: Args: [ '/d /s /c', 'vue-cli-service serve --open' ]
11 silly lifecycle vuefire#0.1.0~serve: Returned: code: 1 signal: null
12 info lifecycle vuefire#0.1.0~serve: Failed to exec serve script
13 verbose stack Error: vuefire#0.1.0 serve: `vue-cli-service serve --open`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:311:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:311:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid vuefire#0.1.0
15 verbose cwd C:\xampp\htdocs\GitHub\stageFinder
16 verbose Windows_NT 10.0.17763
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
18 verbose node v12.16.1
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error vuefire#0.1.0 serve: `vue-cli-service serve --open`
22 error Exit status 1
23 error Failed at the vuefire#0.1.0 serve script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
I uninstall the Node js and installed but that doesn't work.
I deleted the project and downloaded it from Github but that also doesn't work.

Getting Error while running the React App

This is the log of the error that I am getting while running "npm start" command after creating react app using npx create-react-app my-app.
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm#6.13.4
3 info using node#v12.16.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle my-app#0.1.0~prestart: my-app#0.1.0
6 info lifecycle my-app#0.1.0~start: my-app#0.1.0
7 verbose lifecycle my-app#0.1.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle my-app#0.1.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\mechi\my-app\node_modules\.bin;C:\Users\mechi\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Java\jdk1.8.0_101\bin;C:\Program Files (x86)\Java\jdk1.8.0_101\lib;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\mechi\AppData\Local\Microsoft\WindowsApps;C:\Users\mechi\AppData\Local\atom\bin;C:\Users\mechi\AppData\Local\hyper\app-3.0.2\resources\bin;C:\Program Files\heroku\bin;C:\Users\mechi\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
9 verbose lifecycle my-app#0.1.0~start: CWD: C:\Users\mechi\my-app
10 silly lifecycle my-app#0.1.0~start: Args: [ '/d /s /c', 'react-scripts start' ]
11 silly lifecycle my-app#0.1.0~start: Returned: code: 1 signal: null
12 info lifecycle my-app#0.1.0~start: Failed to exec start script
13 verbose stack Error: my-app#0.1.0 start: `react-scripts start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:311:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:311:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid my-app#0.1.0
15 verbose cwd C:\Users\mechi\my-app
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v12.16.1
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error my-app#0.1.0 start: `react-scripts start`
22 error Exit status 1
23 error Failed at the my-app#0.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Please anyone can give the solution of this problem ? I had tried all the methods that are posted here - uninstalling the package-lock.json, node_modules and reinstalling npm.
Did you try this?
remove node_modules and lock files
edit package.json so the new version of react-scripts is "2.1.8"
yarn install / npm install
cd your-app
yarn start / npm start

Npm error 1 on Npm run serve

I get this error when I type npm run serve.
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'serve' ]
2 info using npm#6.1.0
3 info using node#v10.4.1
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle frontend#0.1.0~preserve: frontend#0.1.0
6 info lifecycle frontend#0.1.0~serve: frontend#0.1.0
7 verbose lifecycle frontend#0.1.0~serve: unsafe-perm in lifecycle true
8 verbose lifecycle frontend#0.1.0~serve: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\project_web\frontend\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Git\cmd;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\MySQL\MySQL Utilities 1.6\;C:\Program Files\nodejs\;C:\Users\lubomir\AppData\Local\Microsoft\WindowsApps;;C:\Users\lubomir\AppData\Roaming\npm;C:\Program Files\Microsoft VS Code\bin
9 verbose lifecycle frontend#0.1.0~serve: CWD: D:\project_web\frontend
10 silly lifecycle frontend#0.1.0~serve: Args: [ '/d /s /c', 'vue-cli-service serve' ]
11 silly lifecycle frontend#0.1.0~serve: Returned: code: 1 signal: null
12 info lifecycle frontend#0.1.0~serve: Failed to exec serve script
13 verbose stack Error: frontend#0.1.0 serve: `vue-cli-service serve`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:304:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:961:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
14 verbose pkgid frontend#0.1.0
15 verbose cwd D:\project_web\frontend
16 verbose Windows_NT 10.0.17134
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
18 verbose node v10.4.1
19 verbose npm v6.1.0
20 error code ELIFECYCLE
21 error errno 1
22 error frontend#0.1.0 serve: `vue-cli-service serve`
22 error Exit status 1
23 error Failed at the frontend#0.1.0 serve script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
We need to see your package.json file, but as I am using vue, I use command npm run dev, not serve. So maybe that’s the problem..

Rocky npm package watch script causes error

I downloaded Rocky from GitHub which requires me to run:
npm install
npm run watch
I installed node.js, latest Python files, and VS Build Tools however I cannot proceed from here.
Here is the error log:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\Joseph\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'watch' ]
2 info using npm#5.6.0
3 info using node#v9.3.0
4 verbose run-script [ 'prewatch', 'watch', 'postwatch' ]
5 info lifecycle RockyBoy#1.0.0~prewatch: RockyBoy#1.0.0
6 info lifecycle RockyBoy#1.0.0~watch: RockyBoy#1.0.0
7 verbose lifecycle RockyBoy#1.0.0~watch: unsafe-perm in lifecycle true
8 verbose lifecycle RockyBoy#1.0.0~watch: PATH: C:\Users\Joseph\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Projects\Web App\node_modules\.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\Program Files\dotnet\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\Joseph\AppData\Local\Microsoft\WindowsApps;C:\Python27;C:\Users\Joseph\AppData\Local\Microsoft\WindowsApps;C:\Users\Joseph\AppData\Local\atom\bin;C:\Users\Joseph\AppData\Roaming\npm
9 verbose lifecycle RockyBoy#1.0.0~watch: CWD: C:\Projects\Web App
10 silly lifecycle RockyBoy#1.0.0~watch: Args: [ '/d /s /c', 'gulp' ]
11 silly lifecycle RockyBoy#1.0.0~watch: Returned: code: 1 signal: null
12 info lifecycle RockyBoy#1.0.0~watch: Failed to exec watch script
13 verbose stack Error: RockyBoy#1.0.0 watch: `gulp`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Users\Joseph\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
13 verbose stack at EventEmitter.emit (events.js:159:13)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\Joseph\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:159:13)
13 verbose stack at maybeClose (internal/child_process.js:943:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid RockyBoy#1.0.0
15 verbose cwd C:\Projects\Web App
16 verbose Windows_NT 10.0.16299
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Joseph\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "watch"
18 verbose node v9.3.0
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error RockyBoy#1.0.0 watch: `gulp`
22 error Exit status 1
23 error Failed at the RockyBoy#1.0.0 watch script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Resources