# Bash: npx: command not found / Unexpected token function

**URL:** <https://forum.openzeppelin.com/t/bash-npx-command-not-found-unexpected-token-function/733>\
**Category:** Support\
**Created:** [May 26, 2019, 11:08am UTC](https://forum.openzeppelin.com/t/bash-npx-command-not-found-unexpected-token-function/733 "2019-05-26T11:08:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmarterContracter](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@SmarterContracter](https://forum.openzeppelin.com/u/SmarterContracter)\
**Post date:** [May 26, 2019, 11:08am UTC](https://forum.openzeppelin.com/t/bash-npx-command-not-found-unexpected-token-function/733/1 "2019-05-26T11:08:55Z")

</div>

I was following the steps on creating my first zeppelin project. I’m using cloud9 if it matters. Anyway I tried to run this: npx zos init my-project. And I’m getting “npx: command not found”. What do I do now?

---

<div class="post-metadata">

**Author:** ![remon-nashid](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/remon-nashid/32/123_2.png) [@remon-nashid](https://forum.openzeppelin.com/u/remon-nashid)\
**Post date:** [May 26, 2019, 12:24pm UTC](https://forum.openzeppelin.com/t/bash-npx-command-not-found-unexpected-token-function/733/2 "2019-05-26T12:24:52Z")

</div>

Honestly, I don’t know about Cloud9. But `npx` is a binary provided by Node.js, so that’s what you’re missing. However, if Node.js is installed and you still can’t find `npx` for one reason or another, you can install it as follows: `npm i -g npx`

---

<div class="post-metadata">

**Author:** ![SmarterContracter](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@SmarterContracter](https://forum.openzeppelin.com/u/SmarterContracter)\
**Post date:** [May 26, 2019, 3:56pm UTC](https://forum.openzeppelin.com/t/bash-npx-command-not-found-unexpected-token-function/733/3 "2019-05-26T15:56:54Z")

</div>

Ok so I installed the npx, but now when I run `npx zos init my-project`, I get “Unexpected token function”.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [May 26, 2019, 11:12pm UTC](https://forum.openzeppelin.com/t/bash-npx-command-not-found-unexpected-token-function/733/4 "2019-05-26T23:12:48Z")

</div>

Hi @SmarterContracter

From a web search, it appears to be a node configuration issue on Cloud9. (I assume you mean [AWS Cloud9](https://aws.amazon.com/cloud9/), unfortunately not something I have used before).

The suggested action appears to be to change the version of node you are using via nvm. You may want to give that a try.

> <https://stackoverflow.com/questions/51302021/unexpected-token-function-in-cloud9-aws-lambda>

---

<div class="post-metadata">

**Author:** ![SmarterContracter](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@SmarterContracter](https://forum.openzeppelin.com/u/SmarterContracter)\
**Post date:** [May 27, 2019, 11:46am UTC](https://forum.openzeppelin.com/t/bash-npx-command-not-found-unexpected-token-function/733/5 "2019-05-27T11:46:30Z")

</div>

Thanks, it worked. Oh and I was using the original Cloud9 which will close soon since it got acquired by AWS, but I think they are still quite similar, if anyone else is having the same problem.

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [May 27, 2019, 9:59pm UTC](https://forum.openzeppelin.com/t/bash-npx-command-not-found-unexpected-token-function/733/6 "2019-05-27T21:59:37Z")

</div>

Hi @SmarterContracter glad that resolved your issue.

Just to let you know that [ZeppelinOS 2.3.0 has been released](https://forum.openzeppelin.com/t/zeppelinos-2-3-0-released/740)

We would appreciate any feedback on your experience with ZeppelinOS.

Also it would be great if you could take a moment to [Introduce yourself here!](https://forum.openzeppelin.com/t/introduce-yourself-here/88) and let us know what you are working on.

Welcome to the community.
