用npm安装webpack的时候报了这个错: Refusing to install webpack as a dependency of itself 翻译过来大概是:'拒绝安装webpack其本身的依赖'. 然后我试了试安装其他的包,都没问题,唯独webpack,见鬼了. 我想到npm init的时候,name名给的就是webpack,于是我进到package.json中,把name改成了myApp,再安装webpack,成功了! 这些坑真是...…
安装webpack时,出现以下问题: Refusing to install webpack as a dependency of itself npm ERR! Windows_NT npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "…
今天在使用npm安装插件的时候提示如下错误: npm WARN install Refusing to install vue-router as a dependency of itself npm 阻止安装插件. 将npm的镜像改成taobao的镜像后测试还是不行,修改npm镜像: sudo npm install -g cnpm --registry=https://registry.npm.taobao.org 后来发现是因为package.json里面的name名字和插件的名字同名,导…
46 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "react-handsontable"47 error node v6.9.448 error npm v3.10.1049 er…
npm ERR! code ENOSELF npm ERR! Refusing to install package with name "webpack" under a package npm ERR! also called "webpack". Did you name your project the same npm ERR! as the dependency you're installing? npm ERR! npm ERR! For more…
我的执行步骤 我创建了一个名叫express的文件夹,想在这个工程中学习express 进入该文件夹,执行npm init来初始化package.json文件,一直回车. 我们会发现当前文件夹多了一个 package.json 文件. 然后安装express包并保存在package.json的依赖中 npm install express --save 出现错误: 10:04:53 @~/code/express$ npm install express --save npm ERR! code…
npm install webpack -g   全局安装webpack…
MacBook-Air:~ xxx$ npm install webpack -g npm WARN invalid config registry="" npm WARN invalid config Must be a full url with 'http://' npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/webpack/node_modules/acorn-dyna…
最近学习webpack 知识时 下载依赖结果报了这个错 查阅资料后发现是 这个name 不能使用所需要安装包的名字! 换为其他之后 再次操作命令 就没问题了…
当我们在安装以一些依赖的时候会提示以下报错--------- 问题出在: 这个name 不能使用所需要安装包的名字! 解决方案----- 修改下就行 -- -我将wenpack 改成webpack1 就解决了这个问题----…