npm install cheerio 安装了还是提示cheerio not defined
npm install cheerio
npm install cheerio
2016-11-02
进入npm的node_modules文件夹下安装就不会报警了
D:\nodejs6_10_3_x64\node_modules\npm\node_modules>npm install cheerio
npm@3.10.10 D:\nodejs6_10_3_x64\node_modules\npm
`-- cheerio@1.0.0-rc.2
+-- css-select@1.2.0
| +-- boolbase@1.0.0
| +-- css-what@2.1.0
| +-- domutils@1.5.1
| `-- nth-check@1.0.1
+-- dom-serializer@0.1.0
| `-- domelementtype@1.1.3
+-- entities@1.1.1
+-- htmlparser2@3.9.2
| +-- domelementtype@1.3.0
| `-- domhandler@2.4.2
+-- lodash@4.17.10
`-- parse5@3.0.3
`-- @types/node@10.5.4
D:\nodejs6_10_3_x64\node_modules\npm\node_modules>
相同错误:$ npm install cheerio
npm WARN saveError ENOENT: no such file or directory, open 'C:\wamp\www\nodejs\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\wamp\www\nodejs\package.json'
npm WARN nodejs No description
npm WARN nodejs No repository field.
npm WARN nodejs No README data
npm WARN nodejs No license field.
+ cheerio@1.0.0-rc.2
added 23 packages in 19.323s
爬虫这节没有运行结果,不知道是否跟npm安装模块有关系Crystal:school crystal$ npm install cheerio
/Users/crystal/Desktop
└─┬ cheerio@1.0.0-rc.2
└─┬ parse5@3.0.2
└── @types/node@6.0.86
npm WARN enoent ENOENT: no such file or directory, open '/Users/crystal/Desktop/package.json'
npm WARN Desktop No description
npm WARN Desktop No repository field.
npm WARN Desktop No README data
npm WARN Desktop No license field.
我也是Crystal:school crystal$ npm install cheerio
/Users/crystal/Desktop
└─┬ cheerio@1.0.0-rc.2
└─┬ parse5@3.0.2
└── @types/node@6.0.86
npm WARN enoent ENOENT: no such file or directory, open '/Users/crystal/Desktop/package.json'
npm WARN Desktop No description
npm WARN Desktop No repository field.
npm WARN Desktop No README data
npm WARN Desktop No license field.
举报