Lerna bootstrap throws error


#1

lerna bootstrap throws error

As mentioned in :

I tried executing lerna bootstrap to setup a development environment for botpress modules.

However got below error :-

lerna notice cli v3.6.0
lerna ERR! Error: Invalid tag name "^1.2.c": Tags may not have any characters that encodeURIComponent encodes.
lerna ERR!     at invalidTagName (/usr/local/lib/node_modules/lerna/node_modules/npm-package-arg/npa.js:87:15)
lerna ERR!     at fromRegistry (/usr/local/lib/node_modules/lerna/node_modules/npm-package-arg/npa.js:290:13)
lerna ERR!     at Function.resolve (/usr/local/lib/node_modules/lerna/node_modules/npm-package-arg/npa.js:77:12)
lerna ERR!     at Object.keys.forEach.depName (/usr/local/lib/node_modules/lerna/node_modules/@lerna/package-graph/index.js:109:30)
lerna ERR!     at Array.forEach (<anonymous>)
lerna ERR!     at PackageGraph.forEach (/usr/local/lib/node_modules/lerna/node_modules/@lerna/package-graph/index.js:103:38)
lerna ERR!     at Map.forEach (<anonymous>)
lerna ERR!     at new PackageGraph (/usr/local/lib/node_modules/lerna/node_modules/@lerna/package-graph/index.js:92:10)
lerna ERR! lerna Invalid tag name "^1.2.c": Tags may not have any characters that encodeURIComponent encodes.

#2

Got it running by using below command.

./node_modules/.bin/lerna bootstrap

However this leads to a new error :

lerna info version 2.11.0
lerna info Bootstrapping 21 packages
lerna info lifecycle preinstall
lerna info Installing external dependencies
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: yarn install --mutex network:42424 --non-interactive
lerna ERR! warning ../../../package.json: No license field
lerna ERR! warning Waiting for the other yarn instance to finish (31367)
lerna ERR! warning Waiting for the other yarn instance to finish (31389)
lerna ERR! warning Waiting for the other yarn instance to finish (31378)
lerna ERR! error https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
lerna ERR! yarn install v1.12.3
lerna ERR! [1/4] Resolving packages...
lerna ERR! [2/4] Fetching packages...
lerna ERR! info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
lerna ERR! 
lerna ERR!     at Promise.all.then.arr (/home/nishantgautam/nishant-regalix/botpress/node_modules/execa/index.js:236:11)
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
{ Error: Command failed: yarn install --mutex network:42424 --non-interactiveil-sdk
warning ../../../package.json: No license field
warning Waiting for the other yarn instance to finish (31367)
warning Waiting for the other yarn instance to finish (31389)
warning Waiting for the other yarn instance to finish (31378)
error https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
yarn install v1.12.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Can someone point me to a documentation which depicts how to develop modules ?


#3

I have also tried using npm / yarn link.

Cloned the repo locally and linked it using yarn link the channel-web module dose not load at all when linked from local.


#4

Got a module working locally using yarn link.