Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont use npm global installs for ceramic #22

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli/src/install/ceramic_daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub async fn install_ceramic_daemon(
if let Some(v) = version.as_ref() {
program.push_str(&format!("@{}", v.to_string()));
}
npm_install_package(&working_directory, &program, true).await?;
npm_install_package(&working_directory, &program, false).await?;

let ans = match start_ceramic {
Some(true) => true,
Expand Down Expand Up @@ -138,7 +138,7 @@ pub async fn install_ceramic_daemon(

log::info!(
r#"
When you would like to run ceramic please run
When you would like to run ceramic please run

./ceramic daemon --config {}

Expand Down
18 changes: 9 additions & 9 deletions cli/src/install/compose_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub async fn install_compose_db(
if let Some(v) = version.as_ref() {
program.push_str(&format!("@{}", v.to_string()));
}
npm_install_package(working_directory, &program, true).await?;
npm_install_package(working_directory, &program, false).await?;

let env_file = working_directory.join("composedb.env");
let mut f = tokio::fs::OpenOptions::new()
Expand Down Expand Up @@ -64,21 +64,21 @@ pub async fn install_compose_db(
log::info!(
r#"
ComposeDB cli now available.

You can run composedb with

./composedb

To list available models for usage, use

./composedb model:list --network={} --table

To run the graphiql server use

./composedb graphql:server --graphiql --port 5005 <path to compiled composite>

For more information on composedb and commands to run, see https://composedb.js.org/docs/0.4.x/first-composite

You can also take a look at https://github.com/ceramicstudio/EthDenver2023Demo for more ideas on using ComposeDB."#,
network_name
);
Expand Down