小编Cha*_*hen的帖子

执行"npm install"后安装了太多的npm模块

我的package.json:

{
  "name": "thumbnaillist-gulp",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "browserify": "^12.0.1",
    "gulp": "^3.9.0",
    "gulp-concat": "^2.6.0",
    "gulp-react": "^3.1.0",
    "gulp-util": "^3.0.7",
    "react": "^0.13.3",
    "react-script-loader": "0.0.1",
    "reactify": "^1.1.1",
    "vinyl-source-stream": "^1.1.0",
    "watchify": "^3.6.1"
  }
}
Run Code Online (Sandbox Code Playgroud)

奇怪的是,在我执行"npm install"之后,除了依赖项字段中列出的模块之外,还安装了其他模块,例如

drwxr-xr-x  14 xxx  wheel   476B Nov 18 18:41 acorn
drwxr-xr-x   7 xxx  wheel   238B Nov 18 18:41 amdefine
drwxr-xr-x   6 xxx  wheel   204B Nov 18 18:41 …
Run Code Online (Sandbox Code Playgroud)

json node.js npm

12
推荐指数
1
解决办法
4557
查看次数

标签 统计

json ×1

node.js ×1

npm ×1