-
Notifications
You must be signed in to change notification settings - Fork 867
npm install/npm start failing. #1340
Comments
From the readme file:
You might wanna downgrade to nodejs v6.11.5 (with nvm) or try the fix mentioned here, here and here. |
i have a similar issue with node v10.15.0 |
@dgobnto - thanks for the response here. I didn't realize it wouldn't perform correctly on newer versions of Node.js, so I tried rolling back to 6.11.1. No luck. I checked the package.json for the links you mentioned, no luck there either.
Looks like the same error output as before. FWIW - this is an older project - probably around ~2 years old. I tried exchanging the old package.json with the newest version so that all the node_modules would be pulling in the latest. |
Which version of Foundation do you have in the node_modules folder? Look for the package.json file in node_modules > foundation-sites. |
I believe it's your gulpfile that is outdated (you should have a |
in the readme.md : grrrrr it is never simple ! |
node_modules/foundation-sites/package.json = "[email protected]", I did delete node_modules (a couple times) before. Not sure what cache you're referring to? |
@roborracle I meant npm cache, with |
yea, I can't get it working. How would you recommend upgrading to the latest version of FP? Seems that would be preferrable at this point, but I don't know of an easy way to separate out my theme from what a new instance of FP would install and/or how to integrate it. If you have advice there, I'd be most grateful. |
@roborracle It depends on the FoundationPress release you started the project with, how much modification you have done and whether you're using git. It could be a more or less easy task or it could be a very tedious one. #1120 and this might be useful. Have you replaced your gulpfile with the latest one in the meanwhile? |
I was having that same problem and found the recommendation to install Fixed my problems with |
I think the problem is a a new, updated version of the package.json with updated versions of the dependencies on the one hand and an old version of the build process (gulpfile). Because the build-process (gulpfile.js / gulpfile.babel.js) make use of the dependencies defined in the package.json both files must be compatible. So I think there are two ways to solve this:
Personally I would prefere the first option. |
No, |
The latest version is compatible with node v10 and node v11 I just testet those versions and had not problem. Older versions of FoundationPress had issues with node versions newer than 6.11.xx |
So to give an update here - basically, I had to clean up my old version and use nvm to switch back to 6.11.5. That combined with the the correct command to watch and compile - note in the older versions the command was |
Back in August 2017 there was a breaking change in FoundationPress. Webpack replaced the previous JavaScript Build Process, the assets management changed (separate src and dist folders). This was the time when the name of the script was changed. Not sure why it was changed. Because of this reasons it is not possible to use the new build process with the old structure. (without major changes to you project) This old build process does not support newer versions of node. I think this issues is solved. If you have further questions, feel free to re-open the issue. |
Strange, because I have never had the problem with |
I've got an older project that I need to update but
npm install
>npm start
is failing.to be clear - I've already removed the
node_modules
directory and tried to re-run.I also tried updating the package.json file to the most recent version so all packages are up to date, but it continues to fail.
I just updated to the latest stable version of node.js 11.6.0 and the previous version where I first found this error was from around version ~10.8
Here is the output from npm install which seems remarkably thin judging based on previous instances of use:
Here is the error output:
Not sure what I need to do here to get sass running compiling again and would love any help I could get.
The text was updated successfully, but these errors were encountered: