creativetimofficial / nuxt-argon-dashboard-laravel-bs4

Nuxt SPA Argon template connected to working Laravel REST API with the help of json:api standard
MIT License
41 stars 118 forks source link

why i'm getting this error in run npm --node-sass #2

Closed baselrabia closed 2 years ago

baselrabia commented 2 years ago

why i'm getting this error in run npm


npm ERR! code 1
npm ERR! path /home/newx/Work/rentte/nuxt-argon-dashboard-laravel/nuxt-argon-dashbord-laravel/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! node:internal/modules/cjs/loader:361
npm ERR!       throw err;
npm ERR!       ^
npm ERR! 
npm ERR! Error: Cannot find module '/home/newx/Work/rentte/nuxt-argon-dashboard-laravel/nuxt-argon-dashbord-laravel/node_modules/ajv/lib/ajv.js'. Please verify that the package.json has a valid "main" entry
npm ERR!     at tryPackage (node:internal/modules/cjs/loader:353:19)
npm ERR!     at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
npm ERR!     at Object.<anonymous> (/home/newx/Work/rentte/nuxt-argon-dashboard-laravel/nuxt-argon-dashbord-laravel/node_modules/har-validator/lib/promise.js:1:11)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1101:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   path: '/home/newx/Work/rentte/nuxt-argon-dashboard-laravel/nuxt-argon-dashbord-laravel/node_modules/ajv/package.json',
npm ERR!   requestPath: 'ajv'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/newx/.npm/_logs/2022-01-22T10_27_06_943Z-debug-0.log
teamupdivision commented 2 years ago

Hi @baselrabia,

Thanks for reporting this and for using Creative Tim products.

Could you please let us know which is the node version you are using? As many packages are deprecated on Node.js v16.x or higher make sure you are using Node.js 14.x(recommended) before starting this installation.

Please let us know.

Best, UPDIVISION Team

baselrabia commented 2 years ago

Thanks for the reply Yeah I was using node 16 when I downgrade to 14 it works fine, Isn't there a solution to work with the new node version

teamupdivision commented 2 years ago

Hi @baselrabia,

Thank you very much for the update. We're glad this worked. We're thinking about doing this update in the future.

In case there are any other issues or things we can help with, please let us know.

Best, UPDIVISION Team