Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

why am I getting npm error when I try to run make dev-setup command? #625

Open
shokri-navid opened this issue Jan 13, 2022 · 0 comments
Open

Comments

@shokri-navid
Copy link

shokri-navid commented Jan 13, 2022

I installed Nextcloud V19 using this manual.
and I want to develop some sample app using Vuejs in Nextcloud. I tried to install this sample app using this app . but when I run make dev-setup I am getting long list of npm errors start with these lines:

npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/navid/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm WARN ERESOLVE overriding peer dependency
npm ERR! npm WARN Found: [email protected]
npm ERR! npm WARN node_modules/webpack
npm ERR! npm WARN dev webpack@"^4.16.2" from the root project
npm ERR! npm WARN 2 more (babel-loader, css-loader)
npm ERR! npm WARN
npm ERR! npm WARN Could not resolve dependency:
npm ERR! npm WARN peer webpack@"^3.1.0" from [email protected]
npm ERR! npm WARN node_modules/extract-text-webpack-plugin
npm ERR! npm WARN dev extract-text-webpack-plugin@"^3.0.2" from the root project
npm ERR! npm WARN EBADENGINE Unsupported engine {
npm ERR! npm WARN EBADENGINE package: '[email protected]',
npm ERR! npm WARN EBADENGINE required: { node: '8.9.4', npm: '5.8.0' },
npm ERR! npm WARN EBADENGINE current: { node: 'v16.3.0', npm: '7.15.1' }
npm ERR! npm WARN EBADENGINE }
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated

These are my Environment specifications:
OS: LinuxLite 5.2 based on ubuntu 20.04
NodeJs: V16.3.0
NPM: 7.15.1

How can I get rid of this issue?

Work around:
1- I perform instructions in this link but no change in result :(
2- I installed multiple node version using n and try this command with different versions on node. but no change.
3- I try to download package manually one by one and I realize that the problem is about strengthify which need to download from github. downloading process raise this exception:

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects clone ssh://[email protected]/MorrisJobke/strengthify.git /root/.npm/_cacache/tmp/git-clone7a2NYq --recurse-submodules --depth=1
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone7a2NYq': Permission denied

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-01-13T18_20_29_689Z-debug-0.log

I try my npm command with sudo prefix and also sudo mode but no difference and the exception is still there :(

@shokri-navid shokri-navid changed the title why am I get npm error when I try to run make dev-setup command? why am I getting npm error when I try to run make dev-setup command? Jan 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant