Skip to content

Build is injecting app script files and usemin is not replacing image names in templates #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
denissellu opened this issue Jul 27, 2014 · 6 comments

Comments

@denissellu
Copy link

I am having the same issue as #370 and I haven't been able to solve my problem yet. Updated scaffold, no error/warning in building process. Doesn't happen with freshly scaffolded project?

@DaftMonk
Copy link
Member

Hi, I need a complete app that I can use to reproduce the issue. Or at least the steps needed to trigger the problem.

@denissellu
Copy link
Author

Everything can be found in this repository https://github.com/denissellu/aerobic.
Thanks

@DaftMonk
Copy link
Member

Ok, so that was actually really helpful in allowing me to track down another bug: #301. I was able to reproduce that issue every time I started the server with your app, so I was able to make this fix for it: 0581ed0

I also updated the grunt file so that you can clone the repo and run grunt serve without getting an error if you're missing the local config: 422d6bc

So you might want to incorporate those fixes into your project.

That said, I was unable to reproduce the grunt usemin issue you're having. Everything worked for me.

Have you tried deleting your node_modules and running npm install? And when you do, does it install without any errors?

@denissellu
Copy link
Author

I deleted node_modules and ran npm install and got an error, I found this in the npm-debug.log

47373 info uninstall [email protected]
47374 info uninstall [email protected]
47375 info install [email protected]
47376 error Error: ENOENT, chmod 'C:\wamp\www\aerobic\node_modules\grunt-nodemon\node_modules\nodemon\node_modules\update-notifier\node_modules\request\package.json'
47377 error If you need help, you may report this entire log,
47377 error including the npm and node versions, at:
47377 error http://github.com/npm/npm/issues
47378 error System Windows_NT 6.2.9200
47379 error command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
47380 error cwd C:\wamp\www\aerobic
47381 error node -v v0.10.28
47382 error npm -v 1.4.9
47383 error path C:\wamp\www\aerobic\node_modules\grunt-nodemon\node_modules\nodemon\node_modules\update-notifier\node_modules\request\package.json
47384 error fstream_path C:\wamp\www\aerobic\node_modules\grunt-nodemon\node_modules\nodemon\node_modules\update-notifier\node_modules\request\package.json
47385 error fstream_type File
47386 error fstream_class FileWriter
47387 error fstream_finish_call chmod
47388 error code ENOENT
47389 error errno 34
47390 error fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:305:19
47390 error fstream_stack Object.oncomplete (fs.js:107:15)
47391 verbose exit [ 34, true ]

@denissellu
Copy link
Author

I re-ran it with no error

@denissellu
Copy link
Author

I scrafolded a new app and copied over my content ran npm install and bower install. grunt build works fine and everything is getting injected in app.js. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants