Node.js Node和npm GitLab的Node sass版本问题
gitlab中我的Node.js Node和npm GitLab的Node sass版本问题,node.js,npm,gitlab,package.json,node-sass,Node.js,Npm,Gitlab,Package.json,Node Sass,gitlab中我的.yml文件如下所示 stages: - prepare_build - save_build - deployment image: node:latest cache: paths: - node_modules/ prepare_build: stage: prepare_build script: - npm install - npm run build artifacts: paths: - build
.yml
文件如下所示
stages:
- prepare_build
- save_build
- deployment
image: node:latest
cache:
paths:
- node_modules/
prepare_build:
stage: prepare_build
script:
- npm install
- npm run build
artifacts:
paths:
- build
下面是我的package.json
文件,其中包含node-sass
和sass-loader
"node-sass": "^4.14.1",
"sass-loader": "^7.0.1",
我的本地机器,构建成功,它有node和npm版本
node : 14.5.0
npm : 6.14.8
下面是我的GitLab构建错误
npm ERR! code 1
npm ERR! path /builds/../../node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js
npm ERR! Building: /usr/local/bin/node /builds./../.././node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
我必须在我的
包.json中更新哪些版本组合?TIA如果未指定节点映像,默认值为最新版本,与正在使用的节点sass版本不兼容,请尝试在生成作业中指定节点映像的版本:
prepare_build:
image: node: 10.15.3
...
是的,您必须将版本组合放入软件包中。json@GopalJoshi最新节点的组合是什么?