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

check if npm needs update #35

Open
jackboberg opened this issue Dec 16, 2016 · 8 comments
Open

check if npm needs update #35

jackboberg opened this issue Dec 16, 2016 · 8 comments

Comments

@jackboberg
Copy link
Contributor

After sourcing versions from root package.json (via demeteorizer), we need to check if a new version of npm was requested. Using these properties:

  "engines": {
  	"node": "4.5.0",
  	"npm": "latest"
  }

I get this:

Demeteorization complete.
Now using node v4.5.0 (npm v2.15.9)
deploy -> v4.5.0 *

It looks like we are updating the version, just not printing the right information.

@jackboberg
Copy link
Contributor Author

The output is from nvm here

@jackboberg
Copy link
Contributor Author

we could remove the > /dev/null 2>&1, but it would make the build output ugly. Maybe we just hide nvm install and instead write a user friendly line that states which version were installed after complete?

@theworkflow
Copy link
Contributor

What exactly is the point of updating npm if the user sets it in the package.json? I do understand your case here though. But also, since [email protected] ships with [email protected] wouldn't there be a problem updating from that version to latest (which is currently v4.0.5)?

@jackboberg
Copy link
Contributor Author

npm rebuild probably needs to happen after npm install npm@$NPM_VERSION

@theworkflow
Copy link
Contributor

What about NPM_VERSION = NPM_VERSION || 'latest'?

@vladejs
Copy link

vladejs commented Dec 19, 2016

@jackboberg
Since meteor > 1.4 bcrypt package needs to be compiled when deploying an app, so yes, npm rebuild in meteor 1.4 apps needs to be done afrer npm install.

Please let me know when this is fixed. I still can't setup CI on modulus with CodeShip.

@jackboberg
Copy link
Contributor Author

@vladejs Just to be clear, we are rebuilding after npm install (which happens in demeteorizer step). Certainly issues with bcrypt and compiled modules after changing node version, but we are rebuilding after that as well..

I plan on fixing our order, but are we sure this issue is due to npm version?

@vladejs
Copy link

vladejs commented Dec 20, 2016

I think it's solved:

Now using node v4.5.0 (npm v4.0.5)
Found package.json: ./bundle/programs/server/package.json
Running command: npm start

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

No branches or pull requests

3 participants