Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

How can I fix this error, I added the command to package.json like the video says for the uglify test.Please help.

I added the command to package.json like the video says for the test of uglify but the command prompt keeps saying: ' can't read file: src/models/* '

I also create the build directory before starting to run the 'npm run uglify' command.

Steven Parker
Steven Parker
243,656 Points

Can you provide a link to the challenge?

2 Answers

{
  "name": "dice_simulator_2015",
  "version": "1.0.0",
  "description": "",
  "scripts": {
    "test": "mocha",
    "uglify": "uglifyjs src/models/* src/frontend.js -m -c -o build/app.js"     
  },
  "author": "Andrew Chalkley",
  "license": "MIT",
  "devDependencies": {
    "mocha": "^2.2.5",
    "uglify-js": "^2.4.23"
  }
}

I'm using a windows command prompt.