npm

vue 调试程序的安装(谷歌浏览器chrome的vuejs devtools 插件的安装)

感情迁移 提交于 2021-01-25 07:10:29
1. 首先在GitHub上下载vue的调试程序插件 vue-devtools 地址:在github上下载压缩包并解压到本地,github下载地址: https://github.com/vuejs/vue-devtools 2. npm install 下载完成后打开命令行cmd cd进入vue-devtools(下载的文件夹中)文件夹, 1. npm install,安装依赖包; 2. npm run build 3. npm run build 执行完, 会在shells>chrome下的src文件夹里生产如上图所示的几个js文件; npm run build 执行完,会在shells>chrome下的src文件夹里生产如上图所示的几个js文件; 若不执行以上命令会报错,无法加载背景脚本"build/background.js",如下图: 3. 打开shells>chrome>manifest.json并把json文件里的"persistent":false改成true 4. 扩展chrome插件 1.打开chrome浏览器,打开更多工具>扩展程序; 2.再点击加载已解压的扩展程序,然后把shells>chrome文件夹放入 5, 测试安装成功 在插件的目录下执行npm run dev,这个时候我们的插件就可以运行了,打开localhost:8080可以看到插件已经安装并运行了

How to fix `sh: ___: command not found` for NPM Modules

你说的曾经没有我的故事 提交于 2021-01-25 07:07:52
问题 I'm relatively new to Node development and I'm trying out various modules, frameworks, etc.. I'm on macOS Catalina. I've changed my NPM root and $PATH while trying to get things to work, and I think I broke something, though I'm not exactly sure what. My issue is very specifically with NPM, which is having a persistent problem running installed modules both locally and globally. When I try to install a dev tool like Nodemon or a framework like Electron, I get error codes like: sh: electron:

How to fix `sh: ___: command not found` for NPM Modules

自闭症网瘾萝莉.ら 提交于 2021-01-25 07:07:02
问题 I'm relatively new to Node development and I'm trying out various modules, frameworks, etc.. I'm on macOS Catalina. I've changed my NPM root and $PATH while trying to get things to work, and I think I broke something, though I'm not exactly sure what. My issue is very specifically with NPM, which is having a persistent problem running installed modules both locally and globally. When I try to install a dev tool like Nodemon or a framework like Electron, I get error codes like: sh: electron:

How to fix `sh: ___: command not found` for NPM Modules

≯℡__Kan透↙ 提交于 2021-01-25 07:05:24
问题 I'm relatively new to Node development and I'm trying out various modules, frameworks, etc.. I'm on macOS Catalina. I've changed my NPM root and $PATH while trying to get things to work, and I think I broke something, though I'm not exactly sure what. My issue is very specifically with NPM, which is having a persistent problem running installed modules both locally and globally. When I try to install a dev tool like Nodemon or a framework like Electron, I get error codes like: sh: electron:

谷歌浏览器安装vuejs devtools 插件

醉酒当歌 提交于 2021-01-25 06:47:27
1 . 下载chrome扩展插件。 在github上下载压缩包并解压到本地,github下载地址: https://github.com/vuejs/vue-devtools 2. npm install 下载完成后打开命令行cmd进入vue-devtools-master文件夹, 1. npm install,安装依赖包;如果安装太慢,就先安装淘宝镜像,命令行输入 $ npm install -g cnpm --registry=https://registry.npm.taobao.org。 安装完成后可以测试是否安装成功:可输入命令:$ cnpm -v 返回版本号说明安装成功  现在就可以用 $ cnpm install  2.cnpm run build 编译打包完后会在shells>chrome下的src文件夹里生产如上图所示的几个js文件; 3. 扩展chrome插件   1.打开chrome浏览器,点击右上角,打开更多工具>扩展程序;    2.打开右上角的开发者模式。 再点击加载已解压的扩展程序,然后把shells>chrome文件夹放入   3.测试插件是否有效。运行Vue项目后 切换到Vue模式。 免责声明 本博客所有文章仅用于学习、研究和交流目的,欢迎非商业性质转载。 博主在此发文(包括但不限于汉字、拼音、拉丁字母)均为随意敲击键盘所出

谷歌浏览器chrome的vuejs devtools 插件的安装

喜夏-厌秋 提交于 2021-01-25 06:47:07
谷歌浏览器chrome的vuejs devtools 插件的安装 (推荐方法2) 安装方法1: 需正常打开chrome商店,搜索vuejs devtools 安装。chrome://extensions/ 开发者工具-扩展程序下启用; 方法2: github下载插件,npm包安装依赖,拖入浏览器扩展程序 具体操作: 1 . 下载chrome扩展插件。 在github上下载压缩包并解压到本地,github下载地址: https://github.com/vuejs/vue-devtools 2. npm install 下载完成后打开命令行cmd进入vue-devtools-master文件夹, 1. npm install,安装依赖包;如果安装太慢,请参照文章末尾说明进行操作。 2. npm run build npm run build 执行完,会在shells>chrome下的src文件夹里生产如上图所示的几个js文件; 若不执行以上命令会报错,无法加载背景脚本"build/background.js",如下图: 3. 打开shells>chrome>manifest.json并把json文件里的"persistent":false改成true 4. 扩展chrome插件 1.打开chrome浏览器,打开更多工具>扩展程序; 2.再点击加载已解压的扩展程序,然后把shells

若重要,总会想办法(Vue学习笔记two)

微笑、不失礼 提交于 2021-01-24 14:30:25
志向太远,不可怕;没有到达,不可怕;可怕的是没有志向,失去了奋斗的方向。 你好,我是梦阳辰!期待与你相遇! 01.插槽slot 为什么要使用插槽? slot翻译为插槽: 在生活中很多地方都有插槽,电脑的USB插槽,插板当中的电源插槽。 插槽的目的是让我们原来的设备具备更多的扩展性。 比如电脑的USB我们可以插入U盘、硬盘、手机、音响、键盘、鼠标等等 组件的插槽 组件的插槽也是为了让我们封装的组件 更加具有扩展性 。让 使用者 可以决定组件内部的一些 内容 到底展示什么。 例子∶移动网站中的导航栏。 移动开发中,几乎每个页面都有导航栏。 导航栏我们必然会封装成一个插件,比如 nav-bar 组件。一旦有了这个组件,我们就可以在多个页面中复用了。但是,每个页面的导航是一样的吗? 不一样! 即不同的组件要求展示的东西不一样,插槽就可以解决这个问题。 <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script src="../res/js/vue.js"></script></head><body><cpn></cpn><div id="app"> <my-cpn><button>我是被插入的东西1</button></my-cpn> <my-cpn><button

I can't use the npm command on Windows 10 with WSL2 ON (ubuntu terminal)

耗尽温柔 提交于 2021-01-24 12:22:20
问题 I'm trying to get the npm command to work but it doesn't want to. As i said in the title, I'm using the windows WSL2. I already have installed nodejs with Git Bash a long time ago but now I need it to work on my ubuntu terminal. How could I fix this issue? My ubuntu terminal: root@DESKTOP-U2RC2DU:~# node -v v10.19.0 root@DESKTOP-U2RC2DU:~# npm -bash: /mnt/c/Program Files/nodejs/npm: /bin/sh^M: bad interpreter: No such file or directory root@DESKTOP-U2RC2DU:~# 回答1: Check your path in WSL. If

I can't use the npm command on Windows 10 with WSL2 ON (ubuntu terminal)

浪子不回头ぞ 提交于 2021-01-24 12:22:20
问题 I'm trying to get the npm command to work but it doesn't want to. As i said in the title, I'm using the windows WSL2. I already have installed nodejs with Git Bash a long time ago but now I need it to work on my ubuntu terminal. How could I fix this issue? My ubuntu terminal: root@DESKTOP-U2RC2DU:~# node -v v10.19.0 root@DESKTOP-U2RC2DU:~# npm -bash: /mnt/c/Program Files/nodejs/npm: /bin/sh^M: bad interpreter: No such file or directory root@DESKTOP-U2RC2DU:~# 回答1: Check your path in WSL. If

ERR! 403 when trying to publish a package to npm

无人久伴 提交于 2021-01-24 12:09:23
问题 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