You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lerna adds/updates a package in the specified packages. Instead it throws an error. This worked before.
Steps to Reproduce (for bugs)
$ lerna add webpack-serve --dev --scope=app1 --scope=app2
lerna notice cli v3.1.2
lerna info versioning independent
lerna ERR! TypeError: opts.scope.replace is not a function
lerna ERR! at Function.pickRegistry (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/npm-registry-fetch/index.js:114:32)
lerna ERR! at packument (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetchers/registry/packument.js:17:26)
lerna ERR! at getManifest (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetchers/registry/manifest.js:19:10)
lerna ERR! at manifest (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetchers/registry/manifest.js:13:10)
lerna ERR! at Object.manifest (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetchers/registry/index.js:17:12)
lerna ERR! at Object.Fetcher#manifest [as manifest] (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/genfun/lib/genfun.js:15:38)
lerna ERR! at manifest (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetch.js:23:18)
lerna ERR! at pinflight (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/manifest.js:24:12)
lerna ERR! at /Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/promise-inflight/inflight.js:29:24
lerna ERR! at Promise._execute (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/bluebird/js/release/debuggability.js:303:9)
lerna ERR! at Promise._resolveFromExecutor (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/bluebird/js/release/promise.js:483:18)
lerna ERR! at new Promise (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/bluebird/js/release/promise.js:79:10)
lerna ERR! at _inflight (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/promise-inflight/inflight.js:28:25)
lerna ERR! at /Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/promise-inflight/inflight.js:22:14
lerna ERR! at tryCatcher (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/bluebird/js/release/util.js:16:23)
lerna ERR! lerna opts.scope.replace is not a function
Hah, whoops, that's because lerna's --scope argument should be named --include, and it's conflicting with pacote's scope (in the npm sense) option. Sorry about that.
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.
lockbot
locked as resolved and limited conversation to collaborators
Dec 27, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
Lerna adds/updates a package in the specified packages. Instead it throws an error. This worked before.
Steps to Reproduce (for bugs)
lerna.json
lerna-debug.log
0 silly argv { _: [ 'add' ], 0 silly argv progress: true, 0 silly argv ci: false, 0 silly argv dev: true, 0 silly argv D: true, 0 silly argv scope: [ 'portal', 'main' ], 0 silly argv loglevel: 'info', 0 silly argv globs: [], 0 silly argv lernaVersion: '3.1.2', 0 silly argv '$0': 'lerna', 0 silly argv pkg: 'webpack-serve' } 1 notice cli v3.1.2 2 verbose rootPath /Users/zuse/Projects/pb-frontend 3 info versioning independent 4 error TypeError: opts.scope.replace is not a function 4 error at Function.pickRegistry (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/npm-registry-fetch/index.js:114:32) 4 error at packument (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetchers/registry/packument.js:17:26) 4 error at getManifest (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetchers/registry/manifest.js:19:10) 4 error at manifest (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetchers/registry/manifest.js:13:10) 4 error at Object.manifest (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetchers/registry/index.js:17:12) 4 error at Object.Fetcher#manifest [as manifest] (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/genfun/lib/genfun.js:15:38) 4 error at manifest (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/lib/fetch.js:23:18) 4 error at pinflight (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/pacote/manifest.js:24:12) 4 error at /Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/promise-inflight/inflight.js:29:24 4 error at Promise._execute (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/bluebird/js/release/debuggability.js:303:9) 4 error at Promise._resolveFromExecutor (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/bluebird/js/release/promise.js:483:18) 4 error at new Promise (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/bluebird/js/release/promise.js:79:10) 4 error at _inflight (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/promise-inflight/inflight.js:28:25) 4 error at /Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/promise-inflight/inflight.js:22:14 4 error at tryCatcher (/Users/zuse/.nvm/versions/node/v9.5.0/lib/node_modules/lerna/node_modules/bluebird/js/release/util.js:16:23)
Context
Your Environment
lerna --version
npm --version
yarn --version
node --version
The text was updated successfully, but these errors were encountered: