yarnpkg

How Do I Uninstall Yarn

本小妞迷上赌 提交于 2019-12-18 10:00:06
问题 How can I uninstall yarn? I've used it for a react-native project and now whenever I move the code out of index.ios.js or index.android.js it throws an error so I'd like to just use npm but whenever I initialize a react-native project it defaults to yarn. I tried npm uninstall yarn but that didn't work. Thanks. 回答1: Depends on how you installed it : brew : brew uninstall yarn tarball : rm -rf "$HOME/.yarn" npm : npm uninstall -g yarn ubuntu : sudo apt-get remove yarn && sudo apt-get purge

What is main difference between yarn and npm? [closed]

╄→гoц情女王★ 提交于 2019-12-17 15:42:59
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I want to ask what is your favorite package manager for JS ? I saw some articles about yarn and npm. But I am not sure what can be better for me. I just start learning JS. Right now difference between yarn and npm is for me like difference between brands of cola. 回答1: There were

pm2 start runs but website is not working correctly

天大地大妈咪最大 提交于 2019-12-14 02:23:54
问题 I have a nodeJS project built with yarn. I can run the application on the server using 'yarn start'. It is working correctly. It runs the dist/app.js file when running with yarn. But when i run it using pm2 start app.js, pm2 process starts but application does not works. Any idea? 来源: https://stackoverflow.com/questions/49470269/pm2-start-runs-but-website-is-not-working-correctly

What does @firebase/app-types@0.x do and when should I use it?

我怕爱的太早我们不能终老 提交于 2019-12-14 01:08:07
问题 On the phase where yarn is linking its dependencies I get the following block of warnings: warning "firebase > @firebase/database@0.2.2" has unmet peer dependency "@firebase/app-types@0.x". warning "firebase > @firebase/firestore@0.4.1" has unmet peer dependency "@firebase/app-types@0.x". warning "firebase > @firebase/functions@0.1.1" has unmet peer dependency "@firebase/app-types@0.x". ... some more unment peer dependency warnings about "@firebase/app-types@0.x" from different firebase

how to resolve 'yarn package has unmet peer dependency'

橙三吉。 提交于 2019-12-14 00:23:33
问题 I get a load of warnings when I run yarn upgrade or install because of unmet peerDependencies. warning " > apollo-link-http@1.5.9" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0". warning " > babel-loader@8.0.4" has unmet peer dependency "@babel/core@^7.0.0". As I understand it, the listed packages need the dependency, and another package in my project has the dependency, I can find the deps but I can't find any information about how to direct the said packages to

Dropdown menu with Bootstrap 4 only drops once in Rails

梦想与她 提交于 2019-12-13 02:50:47
问题 I recently updated to Bootstrap 4.0.0, I'm running Rails 5.1.5 and I installed BS as specified in the README in their github. Furthermore it's been added to package.json for yarn. In gemfile : gem 'bootstrap', '~> 4.0' gem 'jquery-rails' In package.json : "bootstrap": "^4.0.0", "popper.js": "^1.12.9", "jquery": "^3.3.0" I set it in my application.scss : @import "bootstrap"; My app/assets/javascripts/application.js: //= require rails-ujs //= require jquery3 //= require popper //= require

Local npm dependency breaks after previously working

心已入冬 提交于 2019-12-12 23:12:49
问题 I've been working today on a local project and also a local npm package used in the project. My project has been running fine all day and so has the library when installed using npm install ../mylib . Unfortunately, the project is now not working due to some issue in my package that looks like a dependency problem. I rolled both the project and the package back to a state I knew to be working, however, I continue to get the breaking error below. If it makes a difference, I have been using npm

Deploy PHP project with Yarn to Heroku

我只是一个虾纸丫 提交于 2019-12-12 21:54:20
问题 Locally I simply run composer install and yarn install , but when pushing to Heroku only composer dependencies get installed, but not Yarn components. I can't seem to find a way for Heroku to trigger Yarn components installation. 回答1: I just needed to add the heroku/nodejs buildpack inside Heroku application's settings page, alongside the already present heroku/php . The next deploy then also installed the yarn components. 来源: https://stackoverflow.com/questions/48086897/deploy-php-project

Webpack 4 and Uglify Plugin (TypeError: Cannot read property 'length' of undefined)

↘锁芯ラ 提交于 2019-12-12 10:52:50
问题 I'm having problems with Webpack 4 on a Linux machine. The build works fine in dev mode, but fail in production. It also seems to be working on a windows machine. I did try do downgrade webpack to an older version and nothing. Nodejs: v10.2.1 *TypeError: Cannot read property 'length' of undefined* at node_modules/uglifyjs-webpack-plugin/dist/uglify/index.js:59 this.workers = workers === true ? _os2.default.cpus().length - 1 : Math.min(Number(workers) || 0, _os2.default.cpus().length - 1);

yarn install fails on cloning github packages in git post-receive hook

拥有回忆 提交于 2019-12-12 09:56:01
问题 I have created a post-receive hook to deploy changes to an app and install packages via Yarn. It looks like this: #!/bin/sh echo "Checking out changes..." git --work-tree=/home/me/apps/app --git-dir=/home/me/repos/repo.git checkout -f echo "Yarn install..." cd /home/me/apps/app yarn install Notes (stuff that is working): The first portion works fine. The hook is definitely running. The primary app files are updated as expected. When doing yarn install from the command line while ssh'd into