Cannot find module '@jscutlery/semver'
See original GitHub issueHi 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:
- Created a year ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.
Thanks, I forgot that!