Vue Create - Unexpected end of JSON input while parsing near '...2","standard-version"' - vue.js

When I run vue create app1, I got this error in the error log:
2733 silly saveTree `-- #vue/cli-service#4.5.8
2734 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...2","standard-version"'
2734 verbose stack at JSON.parse (<anonymous>)
2734 verbose stack at parseJson (C:\Users\findi\AppData\Roaming\npm\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
2734 verbose stack at C:\Users\findi\AppData\Roaming\npm\node_modules\npm\node_modules\node-fetch-npm\src\body.js:96:50
2734 verbose stack at runMicrotasks (<anonymous>)
2734 verbose stack at processTicksAndRejections (internal/process/task_queues.js:97:5)
2735 verbose cwd C:\vue\app
2736 verbose Windows_NT 10.0.19041
2737 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\findi\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--loglevel" "error"
2738 verbose node v12.18.3
2739 verbose npm v6.14.8
2740 error Unexpected end of JSON input while parsing near '...2","standard-version"'
2741 verbose exit [ 1, true ]

Try running npm cache clean --force to clear out npm's cache

Related

webpack-cli TypeError: compiler.plugin is not a function

I'm totally new to prestashop development and all of that stuff and if u reply pls use simplest explanation possible. I'm actually new to web tech too. There is a problem with webpack when im trying to use 'npm run watch' and it says
[webpack-cli] TypeError: compiler.plugin is not a function
at ExtractTextPlugin.apply (C:\xampp\htdocs\prestashop\themes\classic_dev\node_modules\extract-text-webpack-plugin\index.js:233:11)
at createCompiler (C:\xampp\htdocs\prestashop\themes\classic_dev\node_modules\webpack\lib\webpack.js:69:12)
at create (C:\xampp\htdocs\prestashop\themes\classic_dev\node_modules\webpack\lib\webpack.js:113:15)
at webpack (C:\xampp\htdocs\prestashop\themes\classic_dev\node_modules\webpack\lib\webpack.js:121:46)
at f (C:\xampp\htdocs\prestashop\themes\classic_dev\node_modules\webpack\lib\index.js:37:15)
at WebpackCLI.createCompiler (C:\xampp\htdocs\prestashop\themes\classic_dev\node_modules\webpack-cli\lib\webpack-cli.js:1337:24)
at async WebpackCLI.bundleCommand (C:\xampp\htdocs\prestashop\themes\classic_dev\node_modules\webpack-cli\lib\webpack-cli.js:1433:20)
at async Command. (C:\xampp\htdocs\prestashop\themes\classic_dev\node_modules\webpack-cli\lib\webpack-cli.js:384:25)
at async Promise.all (index 1)
at async Command. (C:\xampp\htdocs\prestashop\themes\classic_dev\node_modules\webpack-cli\lib\webpack-cli.js:824:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! prestashop-classic-dev-tools#1.0.0 watch: webpack --progress --watch
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the prestashop-classic-dev-tools#1.0.0 watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
the complete log is
> 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 'watch'
1 verbose cli ]
2 info using npm#6.14.10
3 info using node#v14.15.4
4 verbose run-script [ 'prewatch', 'watch', 'postwatch' ]
5 info lifecycle prestashop-classic-dev-tools#1.0.0~prewatch: prestashop-classic-dev-tools#1.0.0
6 info lifecycle prestashop-classic-dev-tools#1.0.0~watch: prestashop-classic-dev-tools#1.0.0
7 verbose lifecycle prestashop-classic-dev-tools#1.0.0~watch: unsafe-perm in lifecycle true
8 verbose lifecycle prestashop-classic-dev-tools#1.0.0~watch: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\xampp\htdocs\prestashop\themes\classic\_dev\node_modules\.bin;C:\Users\ja\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\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\ja\bin;C:\Python39\Scripts;C:\Python39;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\MySQL\MySQL Shell 8.0\bin;C:\Users\ja\AppData\Local\Programs\Python\Python38\Scripts;C:\Users\ja\AppData\Local\Programs\Python\Python38;C:\Users\ja\geckodriver.exe;C:\Users\ja\AppData\Local\Microsoft\WindowsApps;C:\Users\ja\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;C:\Users\ja\.pyenv\pyenv-win\bin;C:\Users\ja\.pyenv\pyenv-win\shims;C:\xampp\php;C:\Users\ja\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
9 verbose lifecycle prestashop-classic-dev-tools#1.0.0~watch: CWD: C:\xampp\htdocs\prestashop\themes\classic\_dev
10 silly lifecycle prestashop-classic-dev-tools#1.0.0~watch: Args: [ '/d /s /c', 'webpack --progress --watch' ]
11 silly lifecycle prestashop-classic-dev-tools#1.0.0~watch: Returned: code: 2 signal: null
12 info lifecycle prestashop-classic-dev-tools#1.0.0~watch: Failed to exec watch script
13 verbose stack Error: prestashop-classic-dev-tools#1.0.0 watch: `webpack --progress --watch`
13 verbose stack Exit status 2
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:315: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:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1048:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid prestashop-classic-dev-tools#1.0.0
15 verbose cwd C:\xampp\htdocs\prestashop\themes\classic\_dev
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" "run" "watch"
18 verbose node v14.15.4
19 verbose npm v6.14.10
20 error code ELIFECYCLE
21 error errno 2
22 error prestashop-classic-dev-tools#1.0.0 watch: `webpack --progress --watch`
22 error Exit status 2
23 error Failed at the prestashop-classic-dev-tools#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 [ 2, true ]
I already tried to reinstall Node and webpack and also tried to run this with my antivirus off but nothing seems to work

NPM ERR! exit status code 77 when using "npm start"

I receive an error when using "npm start" it throws me this error.
I've already tried npm-cache-clean , and also trying delete the node_modules as well as deleting the package-lock.json , followed by "npm install" this didn't yield a different result.
npm ERR! code ELIFECYCLE
npm ERR! errno 77
npm ERR! crimstock#1.0.0 start: `electron .`
npm ERR! Exit status 77
npm ERR!
npm ERR! Failed at the crimstock#1.0.0 start 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! C:\Users\Negus\AppData\Roaming\npm-cache\_logs\2019-04-23T04_45_49_315Z-debug.log
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 'start' ]
2 info using npm#6.4.1
3 info using node#v8.12.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle crimstock#1.0.0~prestart: crimstock#1.0.0
6 info lifecycle crimstock#1.0.0~start: crimstock#1.0.0
7 verbose lifecycle crimstock#1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle crimstock#1.0.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Desktop\Crimstock2\node_modules\.bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Negus\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\Negus\Desktop\Code\phantomjs-2.1.1-windows\phantomjs-2.1.1-windows\bin;C:\Program Files\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\nodejs;C:\Users\Negus\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\Negus\AppData\Local\Programs\Python\Python36-32;C:\Phantom\phantomjs-2.1.1-windows\bin;C:\Users\Negus\AppData\Roaming\npm;C:\Users\Negus\AppData\Local\Microsoft\WindowsApps;C:\Mongodb\bin;C:\Program Files\heroku\bin
9 verbose lifecycle crimstock#1.0.0~start: CWD: D:\Desktop\Crimstock2
10 silly lifecycle crimstock#1.0.0~start: Args: [ '/d /s /c', 'electron .' ]
11 silly lifecycle crimstock#1.0.0~start: Returned: code: 77 signal: null
12 info lifecycle crimstock#1.0.0~start: Failed to exec start script
13 verbose stack Error: crimstock#1.0.0 start: `electron .`
13 verbose stack Exit status 77
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 emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
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 emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:915:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid crimstock#1.0.0
15 verbose cwd D:\Desktop\Crimstock2
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" "start"
18 verbose node v8.12.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 77
22 error crimstock#1.0.0 start: `electron .`
22 error Exit status 77
23 error Failed at the crimstock#1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 77, true ]
I want the electron app to start and not throw and error because I can't test any javascript in the index.js file I have

can't use galmorous package in react-native

I tried to use glamorous package in react-native.
So I used command as following.
npm install --save glamorous-native
But I encountered error
npm ERR! path E:\Project\IOS\react-Native\Log_IN_DEMO\node_modules\glamorous-native
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'E:\Project\IOS\react-Native\Log_IN_DEMO\node_modules\glamorous-native' -> 'E:\Project\IOS\react-Native\Log_IN_DEMO\node_modules\.glamorous-native.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Autho\AppData\Roaming\npm-cache\_logs\2018-12-03T08_14_26_976Z-debug.log
This is Log file
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 'install',
1 verbose cli 'galmorous-native' ]
2 info using npm#6.4.1
3 info using node#v10.12.0
4 verbose npm-session 875ecedb0dc7d640
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 404 https://registry.npmjs.org/galmorous-native 4267ms
8 silly fetchPackageMetaData error for galmorous-native#latest 404 Not Found: galmorous-native#latest
9 timing stage:rollbackFailedOptional Completed in 0ms
10 timing stage:runTopLevelLifecycles Completed in 5404ms
11 verbose stack Error: 404 Not Found: galmorous-native#latest
11 verbose stack at fetch.then.res (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
11 verbose stack at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
11 verbose stack at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
11 verbose stack at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
11 verbose stack at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
11 verbose stack at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
11 verbose stack at Async._drainQueue (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
11 verbose stack at Async._drainQueues (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
11 verbose stack at Immediate.Async.drainQueues [as _onImmediate] (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
11 verbose stack at runCallback (timers.js:705:18)
11 verbose stack at tryOnImmediate (timers.js:676:5)
11 verbose stack at processImmediate (timers.js:658:5)
12 verbose cwd E:\Project\IOS\react-Native\Log_IN_DEMO
13 verbose Windows_NT 10.0.17134
14 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "galmorous-native"
15 verbose node v10.12.0
16 verbose npm v6.4.1
17 error code E404
18 error 404 Not Found: galmorous-native#latest
19 verbose exit [ 1, true ]
What is the reason?
Anyone know the reason?
Thanks for your attention.
In your Error :-
npm ERR! code E404
npm ERR! 404 Not Found: galmorous-native#latest
I think you have spelled glamorous-native wrong.

Error building on npm

I'm having the following error when running 'npm run build' for my app.
⠋ building for production.../home/edu/Dropbox/projects/personal/for good/musixshare/node_modules/last-call-webpack-plugin/src/index.js:170
compiler.hooks.compilation.tap(
^
TypeError: Cannot read property 'compilation' of undefined
at OptimizeCssAssetsWebpackPlugin.apply (/home/edu/Dropbox/projects/personal/for good/musixshare/node_modules/last-call-webpack-plugin/src/index.js:170:20)
at Compiler.apply (/home/edu/Dropbox/projects/personal/for good/musixshare/node_modules/tapable/lib/Tapable.js:375:16)
at webpack (/home/edu/Dropbox/projects/personal/for good/musixshare/node_modules/webpack/lib/webpack.js:33:19)
at err (/home/edu/Dropbox/projects/personal/for good/musixshare/build/build.js:19:3)
at next (/home/edu/Dropbox/projects/personal/for good/musixshare/node_modules/rimraf/rimraf.js:75:7)
at CB (/home/edu/Dropbox/projects/personal/for good/musixshare/node_modules/rimraf/rimraf.js:111:9)
at /home/edu/Dropbox/projects/personal/for good/musixshare/node_modules/rimraf/rimraf.js:137:14
at FSReqWrap.oncomplete (fs.js:152:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! musixshare#1.0.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the musixshare#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! /home/edu/.npm/_logs/2018-05-25T17_24_14_199Z-debug.log
And this is the error log I got:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using npm#6.1.0
3 info using node#v8.11.2
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle musixshare#1.0.0~prebuild: musixshare#1.0.0
6 info lifecycle musixshare#1.0.0~build: musixshare#1.0.0
7 verbose lifecycle musixshare#1.0.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle musixshare#1.0.0~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/edu/Dropbox/projects/personal/for good/musixshare/node_modules/.bin:/home/edu/bin:/home/edu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle musixshare#1.0.0~build: CWD: /home/edu/Dropbox/projects/personal/for good/musixshare
10 silly lifecycle musixshare#1.0.0~build: Args: [ '-c', 'node build/build.js' ]
11 silly lifecycle musixshare#1.0.0~build: Returned: code: 1 signal: null
12 info lifecycle musixshare#1.0.0~build: Failed to exec build script
13 verbose stack Error: musixshare#1.0.0 build: `node build/build.js`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid musixshare#1.0.0
15 verbose cwd /home/edu/Dropbox/projects/personal/for good/musixshare
16 verbose Linux 4.13.0-43-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v8.11.2
19 verbose npm v6.1.0
20 error code ELIFECYCLE
21 error errno 1
22 error musixshare#1.0.0 build: `node build/build.js`
22 error Exit status 1
23 error Failed at the musixshare#1.0.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
How can I solve this? I can run 'npm run dev' normally, just the build return this error. I've already tried updating all the dependencies.
I've got the solution, the problem was a incompatibility between webpack and optimize-css-assets-webpack-plugin. Downgrading the package to v3.2.0 got it fixed.

Error on "npm install & bower install"

After installation, the new jhipster project appeared here such error:
it is log file npm-debug.log:
1891 verbose stack at Request.emit (events.js:185:7)
1891 verbose stack at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1082:10)
1891 verbose stack at emitOne (events.js:95:20)
1891 verbose stack at Request.emit (events.js:182:7)
1891 verbose stack at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1009:12)
1892 verbose cwd D:\projects\jproject
1893 error Windows_NT 6.1.7601
1894 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
1895 error node v5.5.0
1896 error npm v3.3.12
1897 error Unexpected end of input
1897 error {"_id":"karma","_rev":"632-143ecb8b5235e3c97cf3d4b359599b72","name":"karma","description":"Spectacular Test Runner for JavaScript.","dist-tags":{"latest":"0.13.19"},"versions":{"0.8.0":{"name":"karma","description":"Spectacular Test Runner for JavaScript.","homepage":"http://karma-runner.github.com/","bugs":{"url":"https://github.com/karma-runner/karma/issues"},"keywords":["karma","spectacular","runner","testacular","js","javascript","testing","test","...
.8.4"},"peerDependencies":{"karma-jasmine":"*","karma-requirejs":"*","karma-coffee-preprocessor":"*","karma-html2js-preprocessor":"*","karma-chrome-launcher":"*","karma-firefox-launcher":"*","karma-phantomjs-launcher":"*","karma-script-launcher":"*"},"devDependencies":{"grunt":"~0.4","grunt-simple-mocha":"git://github.com/yaymukund/grunt-simple-mocha.git","grunt-contrib-jshint":"~0.3","grunt-coffeelint":"~0.0.6","grunt-npm":"~0.0.1","grunt-bump":"~0.0.
1898 error If you need help, you may report this error at:
1898 error <https://github.com/npm/npm/issues>
1899 verbose exit [ 1, true ]
Help me why this error occurs?
As written in the documentation, you must install Grunt before installing JHipster.
If you don't know how to do this, we also provide a Vagrant box where it's already installed.