-
-
Notifications
You must be signed in to change notification settings - Fork 831
Conversation
[email protected] droped support of prepublish for npm install. prepare replaces prepublish. See npm/npm#10074
Can one of the admins verify this patch? |
The only problem with this is that it will drop support for npm < 4, ie. node < 7.3.0 |
It's worth noting that node 6 users can upgrade to npm 5 without issue. |
Well maybe using both could help. Because for me is riot unusable in this case. Downgrade of npm is no option as I got another project where I use some newer features :/ |
Surely we just point "prepare" at "prepublish" and we're done? (as in literally |
That works until you have npm versions that haven't done the hard switch and try and do both:
(Edit: I actually tried this, it is infinite) |
Well you could just add the same as in prepublish to prepare. It would run them 2 times but not loop |
The alternative for now is to use |
@lukebarnard1 that works only on Linux. On windows you only have one version :/ |
I'm clearly missing some context here, because when I do What am I missing? |
@richvdh atleast on my windows maschine it did not run prepublish when it installs something as dependency. |
What version of npm? |
Wait, that's expected. It's why the riot-web readme tells you to manually run npm i on the js-sdk and react-sdk. Afaik npm does not run prepare in this situation either? |
@richvdh well you not always need a full dev env. In that case you want it to build react-sdk or js-sdk anyway. |
@MTRNord I don't understand how this patch helps. |
@richvdh for eexample if you quickly want to build the master of riot and don't want to pull every repo it is usually enough to just do npm install in riot-web. But doing so it has to run the prepublish script to build the needed files. with npm@5 and node8 as combination on windows that script never gets run. That causes the buid process to fail. You will eed to go in the node_modules folder and run npm run build in there to to get the needed compiled/transpiled js files. But yes this patch only works for npm>4 :/ |
As I said in @MTRNord said he would get back to me with details of what problem this actually solves. |
@MTRNord I'm going to close these until we understand what's going on here. |
[email protected] droped support of prepublish for npm install. prepare replaces prepublish. See npm/npm#10074