最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - npm: not found error in gitlab-ci.yml file while executing test cases - Stack Overflow

programmeradmin4浏览0评论

I am trying to test my test-cases of nodeJs.

Here is my gitlab-ci.yml

test:
  type: test
  script:
    - npm run test

while executing CI/CD I got this error

/bin/sh: eval: line 117: npm: not found

How to solve this error?

I am trying to test my test-cases of nodeJs.

Here is my gitlab-ci.yml

test:
  type: test
  script:
    - npm run test

while executing CI/CD I got this error

/bin/sh: eval: line 117: npm: not found

How to solve this error?

Share Improve this question asked Mar 14, 2019 at 8:47 Harsh PatelHarsh Patel 6,85010 gold badges43 silver badges77 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

You should specify that you want to use the node image

test:
  image: node:10
  type: test
  script:
    - npm run test
发布评论

评论列表(0)

  1. 暂无评论