dimanche 12 novembre 2017

npm install throws error on remote host cannot read property 'length' of undefined

I am trying to deploy my local development to GitHub and also let my Webserver pull from Github (which works fine).

I clone my Laravel Repository from Github to my Server. After that I run composer install (which works fine). But when running npm install I get the following error:

npm ERR! Cannot read property 'length' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     /.npm/_logs/2017-11-12T14_48_59_351Z-debug.log

I checked the log file: it is empty.

Further, running other commands like npm help config throws this error:

npm ERR! file man
npm ERR! path man
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn man
npm ERR! enoent spawn man ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! enoent Check if the file 'man' is present.

npm ERR! A complete log of this run can be found in:
npm ERR!     /.npm/_logs/2017-11-12T14_49_57_777Z-debug.log

I just installed node and npm on my shared hosting via the command line. npm -v results in 5.5.1

Any ideas how to solve this? Could this be an error within NPM?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2miONiu
via IFTTT

Aucun commentaire:

Enregistrer un commentaire