如何修复Laravel信息上的Vue安装错误

时间:2019-01-30 21:10:37

标签: laravel vue.js

[在此处输入图像描述] [1]我想在Laravel中安装Vue作为前端脚手架,但出现此错误。请问我该如何解决?

npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
    npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.

    > node-sass@4.11.0 install C:\Users\AGZ\Desktop\LaravelSite\node_modules\node-sass
    > node scripts/install.js

    internal/modules/cjs/loader.js:605
        throw err;
        ^

    Error: Cannot find module 'psl'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
        at Function.Module._load (internal/modules/cjs/loader.js:529:25)
        at Module.require (internal/modules/cjs/loader.js:659:17)
        at require (internal/modules/cjs/helpers.js:22:18)
        at Object.<anonymous> (C:\Users\AGZ\Desktop\LaravelSite\node_modules\tough-cookie\lib\pubsuffix-psl.js:32:11)
        at Module._compile (internal/modules/cjs/loader.js:723:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:734:10)
        at Module.load (internal/modules/cjs/loader.js:620:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
        at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    npm WARN img-loader@3.0.1 requires a peer of imagemin@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies
     

你自己。           npm WARN ajv-keywords@3.3.0需要ajv@^6.0.0的对等方,但未安装任何对等方。您必须自己安装对等依赖项。           npm警告可选的跳过选择性依赖性:fsevents@1.2.7(node_modules \ fsevents):           npm WARN notsup跳过可选依赖项:fsevents@1.2.7不受支持的平台:通缉{“ os”:“ darwin”,“ arch”:“ any”}   (当前:{“ os”:“ win32”,“ arch”:“ x64”})

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! node-sass@4.11.0 install: `node scripts/install.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the node-sass@4.11.0 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\AGZ\AppData\Roaming\npm-cache\_logs\2019-01-30T19_50_15_978Z-debug.log

[1]:https://i.stack.imgur.com/oXxHZ.jpg 强文本

1 个答案:

答案 0 :(得分:0)

您是否尝试过安装错误引发的软件包?

npm install ajv