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

npm run setup errors on macOS and latest stable npm and node #185

Closed
MaeseppTarvo opened this issue Jun 5, 2019 · 8 comments
Closed

npm run setup errors on macOS and latest stable npm and node #185

MaeseppTarvo opened this issue Jun 5, 2019 · 8 comments

Comments

@MaeseppTarvo
Copy link

MaeseppTarvo commented Jun 5, 2019

I am on macOS and these are my npm and node versions:

npm --v
6.9.0
node -v
v12.3.1

This is the log I get if running npm run setup as mentioned in documentation.

I also tried using node v10.16.0I and npm 6.9.0. Also tried using Yarn but I still run into warnings/errors. Which should be the latest version?

Can you point me to the right direction? Since the documentation requirement says node9.3.0 + and npm@5.5.0 + I thought that using newest stable versions would be fine, correct me if I am wrong.

@MaeseppTarvo
Copy link
Author

MaeseppTarvo commented Jun 5, 2019

Removing the package-lock.json file and running yarn install seems to fix the problem. Now just getting some cli-plugin deprecation warnings.

@kefranabg
Copy link
Owner

Hi @MaeseppTarvo, it seems that the install error is coming from iltorbdependency (which is not compatible with node 12 in iltorb 1.3) but it's an optional dependency so it won't break the install. Just ignore the error 😉

You can either downgrade to node v11 if you don't want this error or just ignore it during deps install with node 12.

@MaeseppTarvo
Copy link
Author

MaeseppTarvo commented Jun 5, 2019

@kefranabg Okay, thank you very much for responding so quickly. I just realized that if I use yarn, the setup script won't run and if running it manually "yarn run setup" then it is going to uninstall all packages and installs them with npm and runs into errors again.

Is there a way to run other setup scripts than npm install? To get the new repo etc..

Anyway, I am gonna try to use the node v11 and hope the best 🙂

@kefranabg
Copy link
Owner

I'll do a PR to update iltorb dependency so you'll be able to install bento-starter with node v12 without errors 😉

@MaeseppTarvo
Copy link
Author

MaeseppTarvo commented Jun 5, 2019

Thank you very much, can't wait to get it to work 😊.

Can you also tell me, is there a way to run other setup scripts than npm install? To get the new repo etc..

@kefranabg
Copy link
Owner

Not sure to understand your question, but you can avoid npm run setup script and run npm install. You can change the remote git origin whenever you want

@MaeseppTarvo
Copy link
Author

The only command I want to avoid is npm install because I am trying to use yarn. But I want to run scripts that are in package.json so it will ask if I want to start new repo, removing useless resources etc

@kefranabg
Copy link
Owner

You can use npm run setup, remove node_modules and install dependencies again with yarn then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants