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
Gustavo Amezcua
16,446 PointsHow 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/* '
Steven Parker
243,656 PointsCan you provide a link to the challenge?
Gustavo Amezcua
16,446 Points2 Answers
Gustavo Amezcua
16,446 Points{
"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"
}
}
Gustavo Amezcua
16,446 PointsI'm using a windows command prompt.
Gustavo Amezcua
16,446 PointsGustavo Amezcua
16,446 PointsI also create the build directory before starting to run the 'npm run uglify' command.