0
votes

[enter image description here][1] I wanted to install Vue for frontend scaffolding in Laravel and i got this error. Please how do I fix it?

npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
    npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.

    > [email protected] 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 [email protected] requires a peer of imagemin@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies

yourself. npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] install: `node scripts/install.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] 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.jpgstrong text

1

1 Answers

1
votes

Have you tried installing the package the error is throwing?

npm install ajv