question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module '@jscutlery/semver'

See original GitHub issue

Hi everyone, I’m trying to use this package in my Bitbucket pipeline, but I’m stuck on this error.

There are any reason to this happens?

This is my pipeline steps:

- step: &build-develop
        name: Build develop
        caches:
          - node
        script:
          - git fetch origin master:refs/remotes/origin/master
          - yarn
          - npx nx affected --target=build --base=develop~1  --head=develop --parallel
        artifacts:
          - dist/**

    - step: &publish-develop
        name: Publish develops
        caches:
          - node
        script:
          - git fetch origin master:refs/remotes/origin/master
          - npx nx affected --target=version --releaseAs=prerelease --base=develop~1  --head=develop --parallel
          - npx nx affected --target=publish --base=develop~1  --head=develop --parallel
          - git push && git push --tags

Error:

Error: Unable to resolve @jscutlery/semver:version.
Cannot find module '@jscutlery/semver'
Require stack:

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
edbzncommented, Jun 10, 2022

I can notice that in the job “Build develop” you install the dependencies using yarn but not in the “Publish develops” job, it might be the cause.

0reactions
Jucian0commented, Jun 10, 2022

Thanks, I forgot that!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Npm install cannot find module 'semver' - Stack Overflow
Solution:Delete the npm-cache/npm folder in the installation directory of nodejs. In windows, it is in C:/User/Username/Appdata/Roaming/npm(or npm_cache). and ...
Read more >
@jscutlery/semver - npm
Allow multiple projects to be versioned independently. This way you release only what you want and consumers don't get updates they don't need....
Read more >
Error: Cannot find module 'semver' · Issue #15611 - GitHub
A temporary workaround is to install npm locally to a clean folder, then replace the global node_modules with the local one. So on...
Read more >
npm install – Cannot find module 'semver' issue - Bala's Blog
I have recently got an error "Cannot find module 'semver'" on my Ubuntu VM when doing npm install. + npm install ... ......
Read more >
Cradle – A Node.js Module You Should Know About
Hello everyone! This is the twelfth post in the node.js modules you should know about article series. The first post was about dnode...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found