# Can I use this bower package somehow?

**URL:** <https://discuss.emberjs.com/t/can-i-use-this-bower-package-somehow/7745>\
**Category:** Uncategorized\
**Created:** [April 8, 2015, 8:47am UTC](https://discuss.emberjs.com/t/can-i-use-this-bower-package-somehow/7745 "2015-04-08T08:47:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kswope](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/kswope/32/10577_2.png) [@kswope](https://discuss.emberjs.com/u/kswope)\
**Post date:** [April 8, 2015, 8:47am UTC](https://discuss.emberjs.com/t/can-i-use-this-bower-package-somehow/7745/1 "2015-04-08T08:47:26Z")

</div>

[https://github.com/broofa/node-uuid](https://github.com/broofa/node-uuid)

I’ve googled my butt off and I don’t see any way to get this library loaded into ember.

I’ve gone through all this.

```auto
bower install node-uuid --save

# Brocfile.js
app.import('bower_components/node-uuid/uuid.js');                

```

And I’ve tried all sorts of variations of this

```auto
var uuid = require('uuid') # require is not defined (it was also installed under node_modules)
uuid.v2() # undefined
import uuid from 'node-uuid' # Could not find module `node-uuid`
import uuid from 'uuid' # Could not find module `uuid`

```

I’ve had no problems with getting app.import() working with things like bootstrap, simple-uuid, etc. What is so incompatable to ember about this particular bower package? Shouldn’t a apparently popular node module, that was even bower-ized, just plug and play in ember.js?

---

<div class="post-metadata">

**Author:** ![kswope](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/kswope/32/10577_2.png) [@kswope](https://discuss.emberjs.com/u/kswope)\
**Post date:** [April 9, 2015, 1:07am UTC](https://discuss.emberjs.com/t/can-i-use-this-bower-package-somehow/7745/2 "2015-04-09T01:07:09Z")

</div>

Turns out it WAS as easy as adding to Brockfile.js

```auto
 app.import('./bower_components/node-uuid/uuid.js');               

```

and doing something like this:

````auto
console.log( uuid.v1() )                                                                                
```

But what threw me off was that whenever I ran

```
ember s
```

I would get the error and assume it wasn't going to work, but it still did
```
routes/index.js: line 5, col 34, 'uuid' is not defined.
```

Bug, or working as intended, it sure is misleading.
````

---

<div class="post-metadata">

**Author:** ![david\_duncan](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@david\_duncan](https://discuss.emberjs.com/u/david_duncan)\
**Post date:** [April 9, 2015, 1:11am UTC](https://discuss.emberjs.com/t/can-i-use-this-bower-package-somehow/7745/3 "2015-04-09T01:11:58Z")

</div>

I believe the jshint error on ember s is caused by you using it as a global reference. You can ignore this global message by placing

```
/*global uuid:false */

```

at the top of the file you use it in (routes/index.js) in this case
