Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting issue with deploy code with latest version #355

Open
parvindersarora1 opened this issue Feb 14, 2023 · 6 comments
Open

Getting issue with deploy code with latest version #355

parvindersarora1 opened this issue Feb 14, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@parvindersarora1
Copy link

sfcc-ci Version

2.11.0

NodeJS Version

14.17.6

sfcc-ci Path

Bitbucket on linux

Host OS Details

Not sure it is issue on bitbucket

Description

Getting issue with sfcc-ci@latest version. Nothing change on pipeline or package only issue comes after latest version with sfcc-ci. Our last successful build was done 8 days earlier.

Relevant log output

npx sfcc-ci client:auth $API_KEY_VAR $APnI_SECRET_VAR 
10s
+ npx sfcc-ci client:auth $API_KEY_VAR $APnI_SECRET_VAR 
internal/modules/cjs/loader.js:905
  throw err;
  ^
Error: Cannot find module '/root/.npm/_npx/102/lib/node_modules/sfcc-ci/node_modules/snyk/dist/bootstrap.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node dist/bootstrap.js exec`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-02-14T19_47_24_569Z-debug.log
Install for [ 'sfcc-ci@latest' ] failed with code 1
@parvindersarora1 parvindersarora1 added the bug Something isn't working label Feb 14, 2023
@stm-dschulz
Copy link

Hi @parvindersarora1 ,

we experience the same issue. We tried the previous version https://github.com/SalesforceCommerceCloud/sfcc-ci/releases/tag/v2.10.0 but have the same error. So assuming that this is somehow related to bitbucket pipelines.

We workarounded by using
npm install -g sfcc-ci
sfcc-ci client:auth
instead of
npx sfcc-ci client:auth

@dev-niko
Copy link

dev-niko commented Feb 15, 2023

i am facing the same issue while installing sfcc-ci "npm install -g sfcc-ci" with image "node:lts-fermium" on gitlab pipeline (gitlab-runner 15.9.0~beta.115.g598a7c91).

My temp solution was to disable postinstall scripts:

  • npm config set ignore-scripts true
  • npm install -g sfcc-ci
  • npm config set ignore-scripts false

But I'm not sure what other implications that might have.

@ricardoseifert
Copy link

Me too,

npm install -g sfcc-ci wont run on my GitLab Pipeline. The image um using: image: node:lts-fermium. The Problem seems, that a sub dependency called "snyk" updated released a new version yesterday.

The latest Version [email protected] seems causing my current problems:

image

@tobiaslohr
Copy link
Contributor

Hi @parvindersarora1 @stm-dschulz @dev-niko @ricardoseifert , we've an open PR #470 which (hopefully) will fix this issue. Can you give that a try and provide feedback please?

@stm-dschulz
Copy link

Hi @tobiaslohr,
the snyk change fixed the issue for us. Thx a lot!

@tobiaslohr
Copy link
Contributor

Thanks @stm-dschulz!

@parvindersarora1 Can you please re-test on your side as well? PR #470 was merged into master, though no release has been built with that yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants