Closed fbucek closed 3 years ago
Hey @fbucek,
Which version of Node and NPM are you using?
Thanks!
❯ npm --version 7.20.5 ❯ node --version v16.6.1 macOS: 11.5.1
Could not reproduce it. Can you please try deleting the node_modules/
folder and package-lock.json
then try again?
I did not have node_modules/
folder but after deleting package-lock.json
and running npm install
again, I got this error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @themesberg/volt-react-dashboard@1.0.0
npm ERR! Found: chartist@0.11.4
npm ERR! node_modules/chartist
npm ERR! chartist@"^0.11.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer chartist@"^0.10.1" from react-chartist@0.14.4
npm ERR! node_modules/react-chartist
npm ERR! react-chartist@"^0.14.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/fbucek/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/fbucek/.npm/_logs/2021-08-06T12_36_31_511Z-debug.log
Also tried to from scratch again ( git clone, npm install ) but with same result.
Tryied also run with suggested npm install --force
but ends up with another many many errors when compiling libsass
...
npm ERR! c++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/Users/fbucek/.node-gyp/16.6.1/include/node -I/Users/fbucek/.node-gyp/16.6.1/src -I/Users/fbucek/.node-gyp/16.6.1/deps/openssl/config -I/Users/fbucek/.node-gyp/16.6.1/deps/openssl/openssl/include -I/Users/fbucek/.node-gyp/16.6.1/deps/uv/include -I/Users/fbucek/.node-gyp/16.6.1/deps/zlib -I/Users/fbucek/.node-gyp/16.6.1/deps/v8/include -I../../nan -I../src/libsass/include -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fno-rtti -fno-exceptions -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw -I/usr/local/opt/llvm/include -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli '/usr/local/Cellar/node/16.6.1/bin/node',
npm ERR! gyp verb cli '/Users/fbucek/Documents/learning/volt-react-dashboard/node_modules/node-gyp/bin/node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@16.6.1 | darwin | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` succeeded python2 /usr/bin/python2
npm ERR! gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.16
npm ERR! gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 16.6.1
npm ERR! gyp verb command install [ '16.6.1' ]
npm ERR! gyp verb install input version string "16.6.1"
npm ERR! gyp verb install installing version: 16.6.1
npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed
npm ERR! gyp verb install version is already installed, need to check "installVersion"
npm ERR! gyp verb got "installVersion" 9
npm ERR! gyp verb needs "installVersion" 9
npm ERR! gyp verb install version is good
npm ERR! gyp verb get node dir target node version installed: 16.6.1
...
@fbucek you're using the latest version of Node, and not the LTS (which is recommended for everyone). If you don't necessarily need to use the latest version of Node, I suggest you downgrade to the LTS (long term support) version.
Check out https://nodejs.org/en/ for their recommendation.
@cordosvictor we will keep developing Volt React based on the Node LTS version, is that right? If there will be breaking changes with a new LTS version, we will update the library dependencies as well.
@zoltanszogyenyi thank you, downgrading node
to the LTS version worked.
I had to downgrade to node@14
brew install node@14
brew unlink node
brew uninstall node
brew link node@14 --force
Then version match LTS version and npm install
and then npm start
works.
❯ node -v
v14.17.4
uhm HI,facing the same issue
and Node LTS is now v18.17.0,cant downgrade to 14 lol
HELP!?
Not possible to install packages since https://npm.fontawesome.com requires password authorization.
git clone https://github.com/themesberg/volt-react-dashboard.git
cd volt-react-dashboard
npm install
--> error