Npm ERR! Unexpected end of JSON input while parsing near ‘…y.npmjs.org/istanbul-’


#1

Hi, when I try to deploy my jovo folder, I have problems with “deprecated gulp-util”. How can I update it? Kind regards Friener


#2

Hi there!

I just tried it with a fresh new project and it worked for me:

Could you tell me a little more about the error message you’re getting?


#3

Ich kann auf deutsch schreiben, oder? Ich habe das eben gerade nochmal das sample Projekt Hello World angelegt. Da ich da schon eine Fehlermeldung bekommen habe, habe ich nmp depencies manuell versucht zu installieren und zur Sicherheit nochmal alles geupdated. Hier sind die Meldungen: Your environment has been set up for using Node.js 10.15.3 (x64) and npm.

C:\Users\Ari>cd C:\Users\Ari\Documents\Entwicklung\Alexa\miniskills\magische_miesmuschel

C:\Users\Ari\Documents\Entwicklung\Alexa\miniskills\magische_miesmuschel>jovo new HelloWorld

I’m setting everything up

√ Creating new directory /HelloWorld
√ Downloading and extracting template helloworld
- Installing npm dependencies

{ Error: Command failed: npm install --save
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: Please upgrade to kleur@3 or migrate to ‘ansi-colors’ if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s).
npm ERR! Unexpected end of JSON input while parsing near ‘…y.npmjs.org/istanbul-’

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ari\AppData\Roaming\npm-cache_logs\2019-06-12T04_06_18_215Z-debug.log

at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:189:13)
at ChildProcess.EventEmitter.emit (domain.js:441:20)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

killed: false,
√ Creating new directory /HelloWorld
√ Downloading and extracting template helloworld
× Installing npm dependencies
-> Command failed: npm install --save
npm WARN deprecated [email protected]:
gulp-util is deprecated - replace it, following the guidelines at
https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated
[email protected]: Please upgrade to kleur@3 or migrate to ‘ansi-colors’ if y
ou
prefer the old syntax. Visit
https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration
path(s).
npm ERR! Unexpected end of JSON input while parsing near
‘…y.npmjs.org/istanbul-’

npm ERR! A complete log of this run can be found
in:
npm ERR!
C:\Users\Ari\AppData\Roaming\npm-cache_logs\2019-06-12T04_06_18_215Z-d
ebug.l
og

C:\Users\Ari\Documents\Entwicklung\Alexa\miniskills\magische_miesmuschel>cd C:\Users\Ari\Documents\Entwicklung\Alexa\miniskills\magische_miesmuschel\HelloWorld

C:\Users\Ari\Documents\Entwicklung\Alexa\miniskills\magische_miesmuschel\HelloWorld>npm install
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: Please upgrade to kleur@3 or migrate to ‘ansi-colors’ if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s).
npm ERR! Unexpected end of JSON input while parsing near ‘…y.npmjs.org/istanbul-’

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ari\AppData\Roaming\npm-cache_logs\2019-06-12T04_17_21_506Z-debug.log

C:\Users\Ari\Documents\Entwicklung\Alexa\miniskills\magische_miesmuschel\HelloWorld>jovo update

All packages are already up to date!

C:\Users\Ari\Documents\Entwicklung\Alexa\miniskills\magische_miesmuschel\HelloWorld>jovo deploy --target zip

> Bundle Project
  √ Copy source code to "./bundle"
  × Run "npm install --production"
   -> Command failed: npm run bundle

[06:18:13] Local modules not
found in
~\Documents\Entwicklung\Alexa\miniskills\magische_miesmuschel\HelloWo
rld
[
06:18:13] Try running: npm install
npm ERR! code ELIFECYCLE
npm
ERR! errno 1
npm ERR! [email protected] bundle: gulp --gulpfile node_modules/jovo-framework/gulpfile.js --cwd ./
npm ERR! Exit
status 1
npm ERR!
npm ERR! Failed at the
[email protected] bundle script.
npm ERR! This is
probably not a problem with npm. There is likely additional logging o
utput
above.
npm WARN Local package.json exists, but node_modules missing, did
you mean to install?

npm ERR! A complete log of this run can be found
in:
npm ERR!
C:\Users\Ari\AppData\Roaming\npm-cache_logs\2019-06-12T04_18_13_307Z
-debu
g.log
Zip “./bundle” folder

C:\Users\Ari\Documents\Entwicklung\Alexa\miniskills\magische_miesmuschel\HelloWorld>


#4

Danke, auf jeden Fall schon mal!


#5

Die gulp-util Geschichten sind nur ein warening, das Problem liegt eher hieran.

Könntest du mal npm cache clean --force versuchen und dann noch mal npm install im Projektverzeichnis?


#6

Ja, das hat funktioniert. Vielen Dank! :grinning:


#7

Super, ich habe gerade mal den Titel hier angepasst, falls weitere Leute ein ähnliches Problem haben