# NPM not in path

**URL:** <https://travis-ci.community/t/npm-not-in-path/2449>\
**Category:** Windows\
**Created:** [February 25, 2019, 1:18am UTC](https://travis-ci.community/t/npm-not-in-path/2449 "2019-02-25T01:18:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eberkund](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/eberkund/32/1307_2.png) [@eberkund](https://travis-ci.community/u/eberkund)\
**Post date:** [February 25, 2019, 1:18am UTC](https://travis-ci.community/t/npm-not-in-path/2449/1 "2019-02-25T01:18:27Z")

</div>

Trying to compile a Golang program which also uses NPM for frontend dependencies.

I have

```auto
language: go

jobs:
  include:
    - name: "Windows installer"
      stage: build
      os: windows
      node_js: "10"
...

```

Which the UI seems to recognize

 ![image](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/4/44222a17f130a1bf13119186c39692e90316c95b.png)

However, I get this error when my build script calls NPM…

```nohighlight
exec: npm install
Error: failed to run "npm install: exec: "npm": executable file not found in %PATH%"

```

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [February 25, 2019, 5:25pm UTC](https://travis-ci.community/t/npm-not-in-path/2449/2 "2019-02-25T17:25:38Z")

</div>

The Windows image does not anything related to Node.js. The Node.js jobs clones the NVS repo and sets it up.

> <https://github.com/travis-ci/travis-build/blob/f47f1c5150484811672b835b5f5b2006372ad982/lib/travis/build/script/node_js.rb#L242-L250>

Your Go job does not do this, so you’ll have to do this on your own.
