-
Notifications
You must be signed in to change notification settings - Fork 27
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
Cannot find module '../features.json' #25
Comments
This is on Linux, with node 10.33 |
Can you try to uninstall then reinstall the package ? |
Closing since nobody complain for this issue in a month. |
Hi, I have a similar issue with my installation of caniuse-api (via gulp-cssnext) :
Requiring
|
Your install has probably not been done correctly. Please try to uninstall then reinstall cssnext. |
Working 👍 |
I can confirm that this affects me also. When using Gulp and cssnext I get the exact same error message as Funx got (see above). For the record: Uninstalling and reinstalling didn't solve anything. |
Just try to reinstall. |
Reinstalling didn't do anything. Didn't I say that? On Fri, Oct 9, 2015 at 6:31 PM Maxime Thirouin notifications@github.com
|
There is more than 500 downloads per day and it's working for everyone, so I recommend you to clean your npm cache and try again. |
Node version 4.1.1 On lau, okt 10, 2015 at 10:06 EH, Maxime Thirouin
|
I'm getting this exact same problem using this via cssnext. I've uninstalled then reinstalled several times, as well as cleaning my npm cache. Using Node version 4.1.2. |
Seems related to #29. |
Sure:
|
Can you try this and reports what is happening: $ cd node_modules/caniuse-api
$ node -e "require('shelljs/global');if(test('-d', 'dist'))exec('node dist/generate-features.js')" |
It seems you have the required file |
Yes, but it'l have to be in a few days. I'll probably be able to do it be On Mon, Oct 12, 2015 at 9:09 AM Maxime Thirouin notifications@github.com
|
I have had the same issues with Node v4.2.1 on Ubuntu 14.04. I had to manually run |
Maybe the test using shelljs fail for some reason. I will try to add an echo if the test fail, so we will get proper output for debugging. |
I released a new version (1.4.0) which may fix things or at least should helps to see if generation is ok or not. Please let me know if that helps. |
It works fine now. Tried two test projects. One using gulp-cssnext, and the other using just cssnext and both worked fine. Thank you! |
FYI I had the same issue running it in Jenkins, and I noticed that the directory name in the error message was cut off after the space. My workspace directory was named "ci - foobar" and it looked like it did not like the space in the name. I renamed it to "ci-foobar" without spaces and it started working. |
hum... Interesting. so you |
@MoOx yes, I believe that's the only thing I changed (renamed the directory) and the bug went away |
Same problem here. |
What is your exact issue? |
Yeah, sure.
and {
"use": [
"postcss-import",
"postcss-nested",
"cssnext",
"postcss-discard-comments",
"cssnano"
],
"input": "_postcss/style.css",
"output": "build/style.css",
"autoprefixer": {
"browsers": [ "> 1%" ]
},
"postcss-discard-comments": {
"removeAll": true
}
}
{
"dependencies": {
"browserify": "^12.0.1",
"caniuse-api": "^1.4.1",
"cssnano": "^3.4.0",
"cssnext": "^1.8.4",
"ellipsize": "0.0.2",
"jquery": "^2.1.4",
"pluralize": "^1.2.1",
"postcss-cli": "^2.3.3",
"postcss-discard-comments": "^2.0.3",
"postcss-import": "^7.1.3",
"postcss-nested": "^1.0.0",
"uglifyjs": "^2.4.10",
"url": "^0.11.0",
"virtual-dom": "^2.1.1"
}
} the netire error:
|
You didn't provide the full npm install output |
|
@KamilLelonek as you can see at the top of the install, caniuse-api hook "seems to" work
Can you take some times too look for the |
I figured out the reason. The problem happens when you have not enough RAM. When I added swap file, everything works fine. This is worh mentioning in documentation, because it may lead to confusion. |
I was having same issue for different reason. If you install with |
Thanks @KamilLelonek, that was the same issue for me, now it works. |
Hi Guys I am getting same issue. I have read above conversation but did't understand exactly what I need to do..Please help........ I am installing sharetribe Then i get this issue Node version - v6.2.1 01:11:54 rails-client-assets.1 | Skipping routes export task. Routes file ./client/app/routes/routes.js exists already. |
@sureshblp71 do you have .json in extensions? Webpack does not consume .json by default, you need to add json-loader and .json extension. |
I had this issue and a simple uninstall/reinstall of caniuse-* modules fixed the issue. Must have been postinstall generation failure the first time.
…results in…
|
Had the same issue as @sureshblp71 . The solution given by @geraldfullam worked just fine for me. Thank you. |
The text was updated successfully, but these errors were encountered: