question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed at the youtransfer@1.1.0 start script 'gulp clean && gulp dist && node app.js'.

See original GitHub issue

After installing and starting YouTransfer with Node.js under Ubuntu Server 18.04.1 LTS, it start´s and crashes directly with the following:

rockdasnetz@transfer:~/transfer/YouTransfer-master$ sudo PORT=80 npm start

youtransfer@1.1.0 start /home/rockdasnetz/transfer/YouTransfer-master gulp clean && gulp dist && node app.js

[07:30:03] Using gulpfile ~/transfer/YouTransfer-master/gulpfile.js [07:30:03] Starting ‘cleanTask’… [07:30:03] Finished ‘cleanTask’ after 140 ms [07:30:03] Starting ‘clean’… [07:30:03] Finished ‘clean’ after 117 μs [07:30:10] Using gulpfile ~/transfer/YouTransfer-master/gulpfile.js [07:30:10] Starting ‘browserifyAppTask’… [07:30:10] Starting ‘browserifyVendorTask’… [07:30:10] Starting ‘copyStaticTask’… [07:30:10] Starting ‘lessTask’… [07:30:20] Finished ‘lessTask’ after 10 s [07:30:44] Finished ‘browserifyVendorTask’ after 33 s [07:30:45] Finished ‘browserifyAppTask’ after 35 s [07:30:45] Finished ‘copyStaticTask’ after 35 s [07:30:45] Starting ‘build’… [07:30:45] Finished ‘build’ after 141 μs [07:30:45] Starting ‘dist’… [07:30:45] Finished ‘dist’ after 334 μs restify listening at http://[::]:80 07:30:49.771Z INFO youtransfer: Scheduled cleanup of expired files /home/rockdasnetz/transfer/YouTransfer-master/lib/localstorage.js:256 if(files.length <= 0) { ^

TypeError: Cannot read property ‘length’ of undefined at /home/rockdasnetz/transfer/YouTransfer-master/lib/localstorage.js:256:12 at FSReqWrap.oncomplete (fs.js:135:15)

npm ERR! Linux 4.15.0-32-generic npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start” npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! youtransfer@1.1.0 start: gulp clean && gulp dist && node app.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the youtransfer@1.1.0 start script ‘gulp clean && gulp dist && node app.js’.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
LouBNielsencommented, Aug 31, 2018
  1. Create an empty folder
  2. Open git bash in that folder
  3. npm install youtransfer -g
  4. youtransfer init
  5. npm init
  6. npm install
  7. run project with npm start or node app.js
  8. browse 5000
0reactions
ScottBeesoncommented, Jul 1, 2020

I get this at the npm install step

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve npm install error “npm ERR! code 1”
If your Node.js version is very recent, try downgrading. The stable version 14.16.1 worked.
Read more >
Gulp: Basics - Oleh Baranovskyi - Medium
Ok, so now we should install Gulp to our dev dependencies and create gulpfile.js. In root directory using command line run the following...
Read more >
Front-end development using Gulp - LinkedIn
Gulp is a JavaScript toolkit which helps you in implementing multiple front end tasks during web development, it can be used to do...
Read more >
Super simple Gulp tutorial for beginners - freeCodeCamp
Node.js. In order to get Gulp up and running on your computer, ... app and dist, as they're important for the Gulp workflow....
Read more >
gulp.Gulp.dest JavaScript and Node.js code examples | Tabnine
Minify the build script, after building it gulp.task('minify', ... dist')) .on('error', console.error); const gpuCore = gulp.src('dist/gpu-browser-core.js') ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found