You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
was8309@VPS1:/var/www/html/nextcloud/apps/notestutorial$ sudo make dev-setup
rm -rf js/*
rm -rf node_modules
No composer command available, downloading a copy from the web
mkdir -p /var/www/html/nextcloud/apps/notestutorial/build/tools
curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...
Composer (version 1.10.10) successfully installed to: /var/www/html/nextcloud/apps/notestutorial/composer.phar
Use it: php composer.phar
mv composer.phar /var/www/html/nextcloud/apps/notestutorial/build/tools
php /var/www/html/nextcloud/apps/notestutorial/build/tools/composer.phar install --prefer-dist
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
21 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
php /var/www/html/nextcloud/apps/notestutorial/build/tools/composer.phar update --prefer-dist
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files
21 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
npm ci
> core-js@3.6.4 postinstall /var/www/html/nextcloud/apps/notestutorial/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js@2.6.11 postinstall /var/www/html/nextcloud/apps/notestutorial/node_modules/@babel/polyfill/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js@3.6.5 postinstall /var/www/html/nextcloud/apps/notestutorial/node_modules/@nextcloud/vue/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> fsevents@1.2.11 install /var/www/html/nextcloud/apps/notestutorial/node_modules/fsevents
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/html/nextcloud/apps/notestutorial/node_modules/fsevents/build'
gyp ERR! System Linux 5.4.0-42-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /var/www/html/nextcloud/apps/notestutorial/node_modules/fsevents
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok
> node-sass@4.14.1 install /var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass
> node scripts/install.js
Unable to save binary /var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/vendor/linux-x64-64 : { Error: EACCES: permiss
ion denied, mkdir '/var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/vendor'
at Object.mkdirSync (fs.js:757:3)
at sync (/var/www/html/nextcloud/apps/notestutorial/node_modules/mkdirp/index.js:72:13)
at Function.sync (/var/www/html/nextcloud/apps/notestutorial/node_modules/mkdirp/index.js:78:24)
at checkAndDownloadBinary (/var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/scripts/install.js:114:11)
at Object.<anonymous> (/var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/scripts/install.js:157:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path:
'/var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/vendor' }
> node-sass@4.14.1 postinstall /var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass
> node scripts/build.js
Building: /usr/bin/node /var/www/html/nextcloud/apps/notestutorial/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_e
xt= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/node',
gyp verb cli '/var/www/html/nextcloud/apps/notestutorial/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp@3.8.0
gyp info using node@10.19.0 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.18
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.19.0
gyp verb command install [ '10.19.0' ]
gyp verb install input version string "10.19.0"
gyp verb install installing version: 10.19.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.19.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/.no
de-gyp"
gyp verb tmpdir == cwd automatically will remove dev files after to save disk space
gyp verb command install [ '--node_gyp_internal_noretry', '10.19.0' ]
gyp verb install input version string "10.19.0"
gyp verb install installing version: 10.19.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 10.19.0
gyp verb ensuring nodedir is created /var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/.node-gyp/10.19.0
gyp WARN install got an error, rolling back install
gyp verb command remove [ '10.19.0' ]
gyp verb remove using node-gyp dir: /var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 10.19.0
gyp verb remove removing development files for version: 10.19.0
gyp WARN install got an error, rolling back install
gyp verb command remove [ '10.19.0' ]
gyp verb remove using node-gyp dir: /var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/.node-gyp
gyp verb remove removing target version: 10.19.0
gyp verb remove removing development files for version: 10.19.0
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass/.node-gyp'
gyp ERR! System Linux 5.4.0-42-generic
gyp ERR! command "/usr/bin/node" "/var/www/html/nextcloud/apps/notestutorial/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbo
se" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/www/html/nextcloud/apps/notestutorial/node_modules/node-sass
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall 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! /root/.npm/_logs/2020-09-07T01_33_55_880Z-debug.log
make: *** [Makefile:29: npm-init] Error 1
Thanks
The text was updated successfully, but these errors were encountered:
Hi, this have to do with the app tutorial.
Never use sudo for this. Remove everything you did, make sure you have the proper permissions as a default user and search tutorials online on how to setup npm/composer for your local user without root. :)
as per readme, tried make dev-setup
so tried sudo
Thanks
The text was updated successfully, but these errors were encountered: