Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • J js-stack-from-scratch
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Verekia
  • js-stack-from-scratch
  • Merge requests
  • !51

Add command to install del package

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/talsafran/patch-1 into master Oct 31, 2016
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: talsafran

I'm going through this tutorial with a fresh install of everything, I didn't seem to have the del package.

Here's what I got when I hit the yarn start at the bottom:

tal at Tals-MacBook-Air in ~/Open Source/js-stack-from-scratch on master▲
$ yarn start
yarn start v0.16.1
$ gulp
module.js:474
    throw err;
    ^

Error: Cannot find module 'del'
    at Function.Module._resolveFilename (module.js:472:15)
    at Function.Module._load (module.js:420:25)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/tal/Open Source/js-stack-from-scratch/gulpfile.js:3:13)
    at Module._compile (module.js:573:32)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)
    at Function.Module._load (module.js:441:3)
error Command failed with exit code 1.
tal at Tals-MacBook-Air in ~/Open Source/js-stack-from-scratch on master▲

Adding del fixed it 🎉

$ yarn add --dev del
yarn add v0.16.1
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
success Saved 12 new dependencies.
├─ array-union@1.0.2
├─ array-uniq@1.0.3
├─ arrify@1.0.1
├─ del@2.2.2
├─ fs.realpath@1.0.0
├─ glob@7.1.1
├─ globby@5.0.0
├─ is-path-cwd@1.0.0
├─ is-path-in-cwd@1.0.0
├─ is-path-inside@1.0.0
├─ path-is-inside@1.0.2
└─ rimraf@2.5.4
✨  Done in 2.70s.

tal at Tals-MacBook-Air in ~/Open Source/js-stack-from-scratch on master▲
$ yarn start
yarn start v0.16.1
$ gulp
[19:18:36] Using gulpfile ~/Open Source/js-stack-from-scratch/gulpfile.js
[19:18:36] Starting 'watch'...
[19:18:36] Finished 'watch' after 13 ms
[19:18:36] Starting 'clean'...
[19:18:36] Finished 'clean' after 14 ms
[19:18:36] Starting 'build'...
[19:18:36] Finished 'build' after 239 ms
[19:18:36] Starting 'main'...
Hello ES6
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/talsafran/patch-1