Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Hoisting failure on latest #263

Closed
1 task done
sareh opened this issue Jan 7, 2019 · 0 comments · Fixed by #264
Closed
1 task done

Hoisting failure on latest #263

sareh opened this issue Jan 7, 2019 · 0 comments · Fixed by #264
Labels
bug Something isn't working

Comments

@sareh
Copy link
Contributor

sareh commented Jan 7, 2019

Describe the bug
With an npm install on latest, the postinstall step lerna bootstrap --ci --hoist --force-local is run and this currently errors.

To Reproduce
Steps to reproduce the behavior:

  1. clone a fresh copy of psammead git clone [email protected]:bbc/psammead.git
  2. npm install
  3. See error
...
lerna notice cli v3.7.1
lerna info versioning independent
lerna info Bootstrapping 16 packages
lerna WARN EHOIST_PKG_VERSION "example-button" package depends on react@^16.5.0, which differs from the hoisted react@^16.6.3.
lerna WARN EHOIST_PKG_VERSION "example-button" package depends on styled-components@^3.4.0, which differs from the hoisted styled-components@^4.1.2.
lerna info Installing external dependencies
lerna info hoist Installing hoisted dependencies into root
lerna info hoist Pruning hoisted dependencies
lerna info hoist Finished pruning hoisted dependencies
lerna ERR! npm ci exited 1 in '@bbc/psammead'
lerna ERR! npm ci stderr:
npm WARN prepare removing existing node_modules/ before installation
npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR!
npm ERR! Missing: nanoid@^2.0.0
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/heidas03/.npm/_logs/2019-01-07T13_54_44_789Z-debug.log

lerna ERR! npm ci exited 1 in '@bbc/psammead'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @bbc/[email protected] postinstall: `lerna bootstrap --ci --hoist --force-local`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @bbc/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/heidas03/.npm/_logs/2019-01-07T13_54_50_899Z-debug.log

Expected behavior
No error on install.

  • Initially labelled with "bug"
@sareh sareh added the bug Something isn't working label Jan 7, 2019
@bcmn bcmn mentioned this issue Jan 7, 2019
3 tasks
@bcmn bcmn closed this as completed in #264 Jan 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant