ICode9

精准搜索请尝试: 精确搜索
  • 停止使用 npm 或 yarn 来安装node_modules2023-07-18 13:46:02

    为什么选择pnpm ?PNPM 有三个大目标: 节省磁盘空间 提高安装速度 创建非平面node_modules目录。 磁盘空间效率:与 Yarn 和 npm 相比,pnpm 使用共享存储和硬链接的方法显着降低了磁盘空间需求。在处理多个项目或维护大型代码库时,这可能特别有利,因为它可以节省宝贵的磁盘空间。 更快

  • JS 模块化 - 03 AMD 规范与 Require JS2022-12-02 20:00:25

    1 AMD 规范介绍AMD 规范,全称 Asynchronous Module Definition,异步模块定义,模块之间的依赖可以被异步加载。AMD 规范由 Common JS 规范演进而来,前文介绍 Common JS 规范时说过,浏览器端无法直接使用 Common JS,需要使用 browserify 编译后才能运行。而 AMD 规范规范则专注于浏览器端。

  • goland 解决 cannot resolve directory 'xxxx'问题2022-09-14 23:04:58

    发现问题 今天好好的项目突然就好多依赖标红了,go.mod 也全是红的,但是执行 go mod tidy 和 sh build.sh 都没有问题,但是看到标红就浑身难受,自己捣鼓了一通,发现没啥用,最后发现了 cannot resolve directory 'gocarina' 这个报错,抱着死马当活马医的心态上某度搜了一下,发现了不少解决方

  • core-js/modules/es.error.cause.js 报错2022-09-13 17:30:40

    解决方法: 1、先删除 node_modules 依赖 npm rm -rf node_modules 2、首先安装 报错的插件 npm install --save core-js 3、最后再 npm install 或者 yarn install npm install yarn install 4、最后 npm run dev 运行启动 npm run dev

  • 一秒钟内创建 React 应用程序2022-09-10 09:04:30

    一秒钟内创建 React 应用程序 还在等待你的 react 应用程序初始化吗?老实说,如果你没有高端系统,npm create-react-app 很烂。创建多个 React 项目也会占用您本地的大量空间。 这是您立即创建 React 应用程序的方法, 第 1 步:创建一次 React 应用程序 去你当地做你通常做的事情来创建

  • [ABP] pro module's ts file t/eslint import modules error2022-09-08 14:01:03

    coding tool: vscode   版本: 1.71.0 (user setup)   Node.js: 16.14.2   V8: 10.2.154.15-electron.0   OS: Windows_NT x64 10.0.19042 typescript version: 4.8.2 frontend: ng type: add as project with source code for example, identity module, look scrreen sho

  • 安装PowerCLI2022-09-06 14:00:08

    1.使用powershell直接安装 Install-Module VMware.PowerCLI -Scope CurrentUser 2.下载安装包后解压,将模块复制到powershell的模块目录 1 在官网下载ZIP包:https://developer.vmware.com/web/tool/vmware-powercli   2 在powershell界面使用$env:PSModulePath查看模块目录的

  • Electron 打包vue 桌面应用 :eosforce github代码 编译遇到很多问题2022-09-02 14:30:52

    eosforce/wallet-desktop: eos force 桌面钱包https://github.com/eosforce/wallet-desktop 要会的知识 永久使用 淘宝镜像代理 npm config set registry https://registry.npm.taobao.org 验证是否设置成功 npm info express 恢复使用 npm config set registry https://registry

  • webpack css-loader模块化导致的antd样式不好用解决方案2022-08-31 20:34:32

    css-loader 模块化会导致 antd 样式文件无效,解决的方式就是排除 node_modules 下的目标文件就可以 如果你用的 less 就可以按以下方式来配置 { test: /\.less$/, include: /node_modules/, // node_modules 下的 less 文件不使用模块化 use: [ { loader: MiniCssE

  • PowerShell教程 - 模块管理(Modules Management)2022-08-29 08:01:18

    更新记录 转载请注明出处。 2022年8月29日 发布。 2022年8月29日 从笔记迁移到博客。 模块管理(Modules Management) 模块和管理单元(Modules and Snap-Ins) Modules were introduced with the release of PowerShell version 2.0 Modules represented a significant step forward o

  • 记录报错之npm WARN deprecated core-js@3.6.5: core-js@<3.23.3 is no longer maintained and not recommended2022-08-27 11:03:56

    当前core-js@2已经放弃维护了,所以要装3以上的版本。 启动的时候出现的问题为 This dependency was not found: core-js/modules/es.error.cause.js in ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js, ./src/directive/permission/hasPermi.js and 5 others

  • 已解决:Error: EPERM: operation not permitted, mkdir **\node_modules\.***-**'2022-08-26 17:01:02

     Error: EPERM: operation not permitted, mkdir 'E:\nodejs\node_modules\.npm-x5uKn2gY' 在重装了win10系统后npm出现了此问题   npm ERR! errno -4048npm ERR! Error: EPERM: operation not permitted, mkdir 'E:\nodejs\node_modules\.npm-x5uKn2gY'npm ERR!

  • ES Modules in Node.js2022-08-25 15:30:08

    ESM 在 Node.js 中的支持情况 Node.js 在 8.5 版本过后,开始以实验特性支持 ESM Node 中使用 ESM 的条件及步骤 Node 版本需大于 8.5 模块文件名需为 mjs 启动 node 时需加 experimental-modules 参数,该参数表示启用 Node.js 的实验特性 node --experimental-modules index.mjs

  • pm2方式管理进程2022-08-24 18:31:48

    4.pm2方式管理进程 要保证后台保持进程,需要安装pm2。全局安装:npm install -g pm2 启动:pm2 start /usr/local/my-yapi/vendors/server/app.js --watch -i 1 这样以后就可以很方便的用pm2就行启动关闭啦~ 5. 通过pm2 save保存当前进程状态。 查看:pm2 list 重启:pm2 restart service/a

  • Vue3+Vite+Vant报错Uncaught SyntaxError: The requested module '/node_modules/.vite/vue.js?v=xxxx&#2022-08-22 18:05:33

    原因 在开发过程中Vue3的依赖版本有变更,直接使用的npm install下载新的版本,会导致node_modules下存在旧版本的缓存,从而影响了本地项目的启动编译。 解决方案 删除项目的 node_modules 文件夹,如果根目录存在 package-lock.json ,最好也一并删除。 修改 package.json ,如下

  • 安装VMware——Unable to install all modules.See log /tmp/vmware-han/vmware-6098.log for detalls.(Exit co2022-08-22 13:01:37

    这是编译失败的原因在VM社区有这样一种解决方案,亲测有效,帮助我自己解决的麻烦,所有在这分享,希望能够帮助到小伙伴:不要被接下来的代码吓倒因为这是github上项目,所以要先在ubuntu上安装gitsudo apt-get install git之后就一顿猛敲git clone https://github.com/mkubecek/vmware-host-

  • vuex的引入2022-08-22 10:02:43

    官方文档可以解决一切问题。 1、安装vuex npm install vuex@next --save 如果版本和你的vue版本不符合,可以根据提示,在@后加上适合的版本号再安装。 安装成功之后会在packjson中表明vuex的版本号 2、新建一个store文件夹,和main.js同级 目录结构如下    index.js是需要配置引入v

  • vue学习之------vuex通俗易懂篇(三)2022-08-20 20:32:11

    vuex中使用modules 工作中,如果遇到不同的业务模块,需要用到vuex,如果全部写在同一个文件中,会很难管理,我们想分各自写各自的,就会用到modules 假设有用户模块:userModule 还有购物车模块:cartModule userModule.js   cartModule.js   store.js   组件中使用:  

  • pnpm 对 npm 和 yarn 降维打击的2022-08-16 14:00:50

    欢迎关注前端早茶,与广东靓仔携手共同进阶 前端早茶专注前端,一起结伴同行,紧跟业界发展步伐~ npm2 用 node 版本管理工具把 node 版本降到 4,那 npm 版本就是 2.x 了。       然后找个目录,执行下 npm init -y,快速创建个 package.json。 然后执行 npm install express,那么 expres

  • 使用js发送一笔交易2022-08-16 01:01:37

    首先准备ganache工具,可以快速搭建一条本地链。 在vscode终端安装yarn add 添加ethers,fs-sxtra,solc,用solc命令编译后下面文件生成abi和bin文件 // I'm a comment! // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; // pragma solidity ^0.8.0; // pragma solid

  • Python3 virtual environment 在 vscode 的实践2022-08-15 21:00:19

    1、虚拟环境实际上就是将 python 解释器 + 项目中可能用的的modules,统一放在虚拟环境对应的目录 2、activate 虚拟环境,只是保证相关module下载到对应文件夹中,而不是说python 环境变量随之变化 3、环境变量能够保证py代码能找到引用的modules,import不会出错。 4、vscode中的参考链

  • sass-loader 版本不兼容导致老项目起不来,重新构建失败的问题 Module build failed (from ./node_modules/_sass-loader@7.3.1@sass2022-08-13 11:31:13

    Failed to compile. ./src/styles/index.scss (./node_modules/_css-loader@1.0.1@css-loader??ref--8-oneOf-3-1!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--8-oneOf-3-2!./node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-3-

  • Intro to AUTOSAR:03 - Basic Software Modules (BSW) 简介 & 示意图2022-07-30 20:33:12

    01. Basic Software Modules (BSW) 各个模块的简单介绍                                                                                                02.示意图: MICROSAR basic software modules for AUTOSAR 4.3

  • Intro to AUTOSAR:01 - 基本概念2022-07-30 20:03:05

    1. AUTOSAR的分层         2. AUTOSAR的系统设计    3. AUTOSAR中的方法 (Method/Methodology)      4. AUTOSAR接口定义          5.  Port(端口)类型         6. 数据类型           7. AUTOSAR基础软件模块(Basic Sostware Modules)  

  • npm报错error:0308010C:digital envelope routines::unsupported2022-07-28 13:02:52

    error:0308010C:digital envelope routines::unsupported 出现这个错误是因为 node.js V17版本中最近发布的OpenSSL3.0, 而OpenSSL3.0对允许算法和密钥大小增加了严格的限制,可能会对生态系统造成一些影响. 在node.js V17以前一些可以正常运行的的应用程序,但是在 V17 及以上版本

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有