search
LoginSignup
2
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

npm lsでのエラー

mysqlパッケージを追加したところ、npm lsでエラーが出た。

$ npm ls
npm ERR! extraneous: mysql@2.12.0 /vagrant/app/node_modules/mysql

対応方法

package.jsonファイルに記述を追加。

package.json
"devDependencies": {
    "mysql":"2.12.0"
  }

参考

npm list でのエラー

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
2
Help us understand the problem. What are the problem?