Mondy
Mondy

Reputation: 2275

npm install into a new Laravel project - error messages

I am using Laracast onto an OSX system. I use the following shell command:

docker-compose exec -u laradock workspace bash

I created a new Laravel project...

composer create-project --prefer-dist laravel/laravel stocks
cd stocks
npm install

Now I get some error messages:

npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. 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 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":"linux","arch":"x64"})

audited 11710 packages in 10.183s found 1 high severity vulnerability run npm audit fix to fix them, or npm audit for details

How can I fix them?

Upvotes: 1

Views: 741

Answers (1)

Abubakr Elghazawy
Abubakr Elghazawy

Reputation: 985

write these for install peer

npm install -g npm-install-peers

Upvotes: 1

Related Questions