npm

ERR! 403 when trying to publish a package to npm

隐身守侯 提交于 2021-01-24 12:06:39
问题 I'm trying to publish a package to npm. You can see the repository here: https://github.com/biowaffeln/mdx-state I logged in to npm with npm login , then I ran npm publish and got the following error message: npm ERR! code E403 npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/mdx-state - Forbidden npm ERR! 403 In most cases, you or one of your dependencies are requesting npm ERR! 403 a package version that is forbidden by your security policy. I have no idea what that's supposed to

聊聊前端日常面试中的套路

二次信任 提交于 2021-01-24 11:46:18
关注 “重度前端” 助力前端深度学习 ━━━━━ 前言 2018年的秋天,金九银十的秋招季🍁,很荣幸,我也加入了跳槽求职的大部队🙃,虽然招聘热潮没有每年年初那样疯狂,但是还是看得出很多公司都在大量的求贤,和以往的跳槽不同,这次我主要通过猎头去寻找面试机会,因为在上一份工作中从猎头那里尝到了一点甜头,那就是会帮你要薪资嘛😏。 但是也有不好的地方,我把我的简历在猎聘等招聘平台上公开后,每天都有不计其数的猎头打电话过来推荐职位,而且每个猎头都要加到你的微信,可能会出现的问题是,他们给你推荐的职位不一定是你喜欢的公司,也不一定是适合你的,有的公司当你去面试了才发现你并不喜欢,这就浪费了双方的时间成本。 所以最近面了很多家,大厂、中厂、小厂、创业的都面过,见识到了各种面试官,也被问到各种面试题,也收到几个offer,但自己满意的确甚少,回想最近的经历,想做一个总结,总结一下面试中可以用的一些套路,和可能会遇到的一些套路。 正文 我把整个面试分为面试前、面试中、和面试后三个阶段,每个阶段都有每个阶段的套路。 我想到的和遇到的套路有限,后续会补充更新,所以这条“路”暂时还没有很长。。。 话不多数,上车🚌。。。 面试前 1. 简历的准备 好的简历是获取更多面试机会的前提,关于如何写一份优质的简历和简历优化等方面的话题我也不是专家,在这里说一下自己的总结。 简历中的重要部分 你目前掌握的技能

聊聊前端开发日常的协作工具(全)

空扰寡人 提交于 2021-01-24 10:41:29
❝ 树酱希望将前端的乐趣带给大家 本文已收录 https://github.com/littleTreeme/frontendThings 喜欢就star✨ ❞ ❝ 前沿:在掘金写作不知不觉已经过了四个月了,从一开始寥寥无几的阅读量,到现在有破万阅读的文章,感谢曾支持我的掘金友,希望在未来能加深产出文章的深度,今天从借此机会跟大家分享下树酱日常工作中常用的一些工具,或许可以帮到你提升日常的协作效率 ❞ 1.写作篇 ✏️ ❝ 基于之前很多童鞋在评论区,问树酱说比如思维导图很好看,用的是什么,首图是怎么制作的等等问题,于是通过一些工具的整理希望能帮助到大家 ❞ 1.1 语雀 ❝ 语雀是一个蚂蚁金服孵化出来的专业的云端知识库,类似wiki,目前已经覆盖了10 万阿里员工的使用,来进行文档编写及知识沉淀 官方链接🔗 ❞ 语雀我常用的两个方面 思维导图:一个是语雀自带的思维导图,个人觉得UI体验很强(外表协会) 日记编排:用语雀来保持记录每天在前端开发中遇到的问题及心得体会,方便复盘和回归,最重要的是排版体验高,支持编排,当你回顾你写的文章的时候,阅读体验高,像是在翻书一样 1.2 Process On ❝ ProcessOn是一个在线协作绘图平台,为用户提供最强大、易用的作图工具。支持在线创作流程图、思维导图、组织结构图、网络拓扑图、BPMN、UML图、UI界面原型设计等 ❞

Pass args into lerna exec command

别来无恙 提交于 2021-01-24 07:22:06
问题 Goal I have yarn test , which is actually composed of two subcommands yarn test:root && yarn test:packages . Both run jest (but packages does it indirectly using lerna exec). I want to be able to type yarn test -t=Pattern from the terminal and have both sub-commands append -t=Pattern to the end. lerna exec -- "yarn test" doesnt seem to have a way to do this. Background I have a monorepo, that uses lerna exec to run yarn test on each lerna package. Given: "test": "yarn run test:packages $@ &&

Pass args into lerna exec command

那年仲夏 提交于 2021-01-24 07:21:07
问题 Goal I have yarn test , which is actually composed of two subcommands yarn test:root && yarn test:packages . Both run jest (but packages does it indirectly using lerna exec). I want to be able to type yarn test -t=Pattern from the terminal and have both sub-commands append -t=Pattern to the end. lerna exec -- "yarn test" doesnt seem to have a way to do this. Background I have a monorepo, that uses lerna exec to run yarn test on each lerna package. Given: "test": "yarn run test:packages $@ &&

Pass args into lerna exec command

只愿长相守 提交于 2021-01-24 07:20:23
问题 Goal I have yarn test , which is actually composed of two subcommands yarn test:root && yarn test:packages . Both run jest (but packages does it indirectly using lerna exec). I want to be able to type yarn test -t=Pattern from the terminal and have both sub-commands append -t=Pattern to the end. lerna exec -- "yarn test" doesnt seem to have a way to do this. Background I have a monorepo, that uses lerna exec to run yarn test on each lerna package. Given: "test": "yarn run test:packages $@ &&

Install private github package from package.json on Github Actions

拜拜、爱过 提交于 2021-01-24 05:47:07
问题 I'm trying to implement Github actions as a CI on my project. The problem is that I'm using private git URL on my package.json but CI gets an error because Github actions "somehow" doesn't have access to that repo which it's impossible because it's on the same user account. Does anyone have any idea how to figure this out? main.workflow file: workflow "Github Actions" { on = "pull_request" resolves = ["Danger JS"] } action "Build" { <-------- This gets error uses = "actions/npm@master" args =

Install private github package from package.json on Github Actions

旧时模样 提交于 2021-01-24 05:42:05
问题 I'm trying to implement Github actions as a CI on my project. The problem is that I'm using private git URL on my package.json but CI gets an error because Github actions "somehow" doesn't have access to that repo which it's impossible because it's on the same user account. Does anyone have any idea how to figure this out? main.workflow file: workflow "Github Actions" { on = "pull_request" resolves = ["Danger JS"] } action "Build" { <-------- This gets error uses = "actions/npm@master" args =

SpringBoot+Vue(3)

拟墨画扇 提交于 2021-01-23 07:46:45
如何在Idea上创建一个vue项目: 打开Idea,新建项目,选择Static Web,然后选择Static Web并创建。在创建完web项目后,需要安装vue脚手架工具。 首先安装npm的淘宝镜像,打开Idea的Terminal,输入 npm i -g cnpm --registry=https://registry.npm.taobao.org 等待下载完成后,继续输入 npm i -g vue-cli 来完成vue脚手架的安装,同时可以使用vue -V来测试脚手架是否安装成功。 脚手架安装成功后,输入 vue init webpack iviewstudy(iviewstudy为包名) 创建完包后,输入 cd iviewstudy 来进入刚刚创建好了包的路径下, 输入 npm install 来导入vue所需要的jar包 输入npm run dev 就可以运行项目了 默认端口一般是8080,即在浏览器中输入 http://localhost:8080/ 即可以访问页面了。 同时,再用Idea创建一个SpringBoot项目,来当作vue项目的后台,并且来实现一个简单的登录注册界面。 首先,我们在vue项目中导入iview,输入指令 npm install iview --save 就能将iview组件自动导入项目中,同时,在main.js中配置,就可以使用了。

react-native项目运行环境搭建及遇到的坑

元气小坏坏 提交于 2021-01-22 10:52:49
运行react-native项目遇到的坑: 一:有时候运行项目的时候,会出现报错,其中包含一些网址,那么说明访问外网的网络不好,需要自己设置代理。 二:从公司拉取下来的项目,运行并没有报错,而是一直卡在0%不动,那么是因为下载外网依赖太慢,或者无法翻墙,可以通过拷贝其他电脑已经下载好的 .gradle 文件即可运行。卡顿情况如下第二张图: 安装依赖(Node、JDK、Android Studio) 第一步: Node版本必须大于等于12,这个项目的话安装版本是12.13.1,直接使用安装包安装即可(注:如果是node版本过高,会出现一些问题,可以手动使用命令降低Node版本,参考地址: https://www.cnblogs.com/judeyq/p/12124985.html )。 安装完Node 后建议设置 npm 镜像(淘宝源)以加速后面的过程。 第二步: 安装JDK,JDK版本必须是1.8(不支持其他版本及最新版本),安装完JDK之后,需要进行环境变量配置,具体操作参考( https://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html ) 第三步: 安装Android Studio(这一步比较复杂),该项目最好安装Android Studio 191版本的,直接使用安装包安装后,需要下载SDK,安装界面中选择