Open philandy opened 6 years ago
It looks like you're using Termux, an dev environment I'm not familiar with. I may not be able to provide a suitable solution for your issue, but I'll try it anyway.
In general, the warnings you see after the installation should go away running npm dedupe
. fsevents
, as is said in the messages, is required only on MacOS, so it shouldn't be a problem.
The sample projects are using Gulp 4, not 3. It shouldn't be necessary, however in case you have overridden the default installation, install Gulp 4 again with npm install gulp@next
. Also, gulp-cli may be a good addition, so install it globally.
Now for the part I'm not sure I can help much. For some reason, npm seems to be not adding your project to its own PATH
. To check that, add a little test script to your project package.json
with the following command:
{
"scripts": {
"path": "echo $PATH | tr ':' '\n'"
},
}
It should print a path with .../<my-project>/node_modules/.bin
in normal situations, meaning it can find the .bin
directory of your node_modules and use the scripts copied (linked) there. A fallback could be to change all scripts to ./node_modules/.bin/gulp ...
. It could be a permission issue too, I'm not sure.
I'm probably doing NPM wrong then, wow. Sorry. I tried npm install gulp@next
and now my CWD has a new directory in it; was assuming npm would update to it's own home directory of its choosing. How would I roll that back to undo that change?
Do you mean that that new dir is node_modules
? You said you installed Gulp using Yarn before, maybe that's why it's there. If npm is conceived to work differently on that platform, then you should stick to it. Mixing Yarn and npm may be a bad idea. You could try removing that created node_modules
directory and the eventual yarn.lock
file Yarn creates.
Everything else is beyond my possibilities here. Like I said before, I know close to nothing about Termux and its intricacies. I'm not able to reproduce your issue at the moment either, so best I can do is guess. In this case, the Termux app community can provide you with better support and point you in the right direction.
Tried a
yarn add gulp
Yet still getting
gulp not found
?Also having trouble with
fsevents
so that might explain some of it. Thanks! So close though.