J4 Issue ?
avatar astridx
astridx
2 Nov 2018

Steps to reproduce the issue

  1. Fetch the current git repo
  2. run npm install

Expected result

No warnings

Actual result

npm WARN lifecycle joomla@4.0.0install: cannot run in wd joomla@4.0.0 node build.js --copy-assets && node build.js --build-check (wd=/var/www/html/joomla-cms)
npm WARN lifecycle joomla@4.0.0
postinstall: cannot run in wd joomla@4.0.0 node build.js --compile-js && node build.js --compile-css && node build.js --compile-ce &&cd administrator/components/com_media && npm install && npm run build (wd=/var/www/html/joomla-cms)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

audited 8149 packages in 7.427s
found 10 vulnerabilities (9 low, 1 high)
run npm audit fix to fix them, or npm audit for details

System information (as much as possible)

Current 4.0-dev Branch on Ubuntu 18.04

Additional comments

I have just rebuilt my system. Joomla is now working. But: I'm worried about the warnings. Did I do something wrong?

$ node --version
v10.13.0
$ npm --version
6.4.1
avatar astridx astridx - open - 2 Nov 2018
avatar joomla-cms-bot joomla-cms-bot - change - 2 Nov 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Nov 2018
avatar wojsmol
wojsmol - comment - 2 Nov 2018

@astridx Please post node --version and npm --version results.

avatar brianteeman
brianteeman - comment - 2 Nov 2018

fsevents is only for osx - thats why you get an unsupported message on windows and why it is optional (google for more info on what it is used for if you want) so as you are on windows it is normal

avatar astridx
astridx - comment - 2 Nov 2018

@wojsmol

$ node --version
v10.13.0
$ npm --version
6.4.1

avatar astridx astridx - change - 2 Nov 2018
The description was changed
avatar astridx astridx - edited - 2 Nov 2018
avatar astridx astridx - change - 2 Nov 2018
The description was changed
avatar astridx astridx - edited - 2 Nov 2018
avatar astridx astridx - change - 2 Nov 2018
The description was changed
avatar astridx astridx - edited - 2 Nov 2018
avatar astridx astridx - change - 2 Nov 2018
The description was changed
avatar astridx astridx - edited - 2 Nov 2018
avatar astridx
astridx - comment - 2 Nov 2018

@brianteeman Thanks for explaining the fsevents warning.

avatar astridx astridx - change - 2 Nov 2018
Title
[4.0]
[4.0] Warnings in npm install
avatar astridx astridx - edited - 2 Nov 2018
avatar dgrammatiko
dgrammatiko - comment - 2 Nov 2018

@astridx the warning has to do with permission:
Do

sudo chown -R my_name /usr/local

This will fix that but also is something common for linux installation

PS replace my_name with your actual user name

avatar brianteeman brianteeman - change - 6 Nov 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 6 Nov 2018
avatar brianteeman
brianteeman - comment - 6 Nov 2018

Can this be closed now?

avatar astridx
astridx - comment - 6 Nov 2018

@dgrammatiko Thank you for your reply. But, my user is the owner of /urs/local.

@brianteeman I just updated my branches and started a new npm install but I see still see the warnings and vulnerabilities. Are I am the only one?

avatar mbabker
mbabker - comment - 6 Nov 2018

The vulnerabilities are not a concern. The NPM environment for the CMS is an ecosystem of something like 5000 packages and dependencies of dependencies are locked to older versions of packages with fixed issues. Those issues are in the build/compiler dependencies, if they're even triggered at all.

avatar brianteeman brianteeman - change - 7 Nov 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-11-07 09:16:50
Closed_By brianteeman
avatar brianteeman brianteeman - close - 7 Nov 2018
avatar sakiss
sakiss - comment - 17 Feb 2021

For anyone facing that, seems like a permission related issue.
This is how i solved it:
npm install --unsafe-perm

Add a Comment

Login with GitHub to post a comment