Always prompting that I can't find fs,. I've already followed the prompts, or is it the same problem?

nuxt
    var request = require("request");
    var cheerio = require("cheerio");

    request("https://www.bing.com",function(err,result){
        if(err){
            console.log(":"+err);
            return;
        }
        //console.log(result.body)
        var page=cheerio.load(result.body);
        console.log(page("title").text());
    });

always prompts that I can"t find fs,. I"ve already followed the prompts, or is it the same problem?

warning  in ./pages/main.vue?vue&type=script&lang=js&

"export "default" (imported as "mod") was not found in "-!../node_modules/babel-loader/lib/index.js??ref--2-0!../node_modules/vue
-loader/lib/index.js??vue-loader-options!./main.vue?vue&type=script&lang=js&"

 ERROR  Failed to compile with 1 errors                                                                                  17:05:49

This dependency was not found:

* fs in ./node_modules/request/lib/har.js

To install it, you can run: npm install --save fs


 READY  Listening on http://localhost:3000

fs does not need to be installed, and the built-in library of node is available directly in the node runtime environment. Your exception may be a problem with babel conversion. The landlord pastes the code all over again.

Menu