node.jsとnpmはインストール済みなのですが、
なぜ、webpackはインストールできないのでしょうか?
ちなみに、ユーザー直下にwebpackというフォルダを作って
そこで、$ npm initを実行した後のコードです。
$ node -v v8.10.0 $ npm -v 5.6.0 $ npm install --save-dev webpack 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 information, see: npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm> npm ERR! A complete log of this run can be found in: npm ERR! /Users/ユーザ名/.npm/_logs/2018-03-13T06_30_49_573Z-debug.log
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/03/13 06:47