Posts

Showing posts with the label yarnpkg

error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?

7 1 My problem seems similar to this issue, except it happens when I run yarn install in a rails app. When I run yarn install , it runs successfully for some time, then ../src/libsass/src/ast.hpp:1614:25: warning: loop variable 'numerator' of type 'const std::__1::basic_string<char>' creates a copy from type 'const std::__1::basic_string<char>' [-Wrange-loop-analysis] for (const auto numerator : numerators) ^ ../src/libsass/src/ast.hpp:1614:14: note: use reference type 'const std::__1::basic_string<char> &' to prevent copying for (const auto numerator : numerators) ^~~~~~~~~~~~~~~~~~~~~~ & ../src/libsass/src/ast.hpp:1616:25: warning: ...

Unable to install react native with react native elements

React native cli globally installed version : 2.0.1 I then used react-native init project_name to set up a project with the native modules. I then tried installing React Native Elements UI Toolkit using yarn add react-native-elements@beta followed by yarn add react-native-vector-icons and then react-native link react-native-vector-icons as per the docs here React Native Elements Docs The install completed successfully with a package.json that looks like this { "name": "project_react_native", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "react": "16.2.0", "react-native": "0.53.3", "react-native-elements": "^1.0.0-beta2" "react-native-vector-icons": "^4.5.0" }, "dev...

React Native - Can not create new project via react-native-cli when react-native version is > 0.55

I am trying to create new project via react native project via react-native-cli react-native init ProjectName and get the following error error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this Error: Command failed: yarn add react-native --exact Project can be created with the same command when react native version is less then or equal to 0.54 react-native init ProjectName --version react-native@0.54 The following links also did not helped me. https://github.com/facebook/react-native/issues/14861 https://github.com/yarnpkg/yarn/issues/3227 I came across similar issue. Following are the steps I took to solve it. Noticed the yarn error occurs due to incompatible node module version. It required node version >= 8.0. For this, I changed the node version using nvm: nvm use 8.0.0 Note: Check first if you have a installed node version >= 8.0 using nvm list . If yes, just use the above ...