ModusCreateOrg / labs

Modus Create Labs web site
https://labs.moduscreate.com
MIT License
5 stars 17 forks source link

Cannot setup dev environment. #79

Closed jaygarcia closed 3 years ago

jaygarcia commented 3 years ago

Attempting an npm -i with a fresh clone yields a massive failure.

jgarcia@duke-nukem:labs2$ npm i
npm ERR! code 1
npm ERR! path /Users/jgarcia/projects/www/labs2/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR! TOUCH Release/obj.target/libvips-cpp.stamp
npm ERR!   CXX(target) Release/obj.target/sharp/src/common.o
npm ERR! info sharp Using cached /Users/jgarcia/.npm/_libvips/libvips-8.8.1-darwin-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@16.1.0 | darwin | x64
npm ERR! (node:81935) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/local/bin/python2
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/jgarcia/projects/www/labs2/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/jgarcia/projects/www/labs2/node_modules/sharp/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/jgarcia/projects/www/labs2/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/jgarcia/.node-gyp/16.1.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/jgarcia/.node-gyp/16.1.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/jgarcia/projects/www/labs2/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/jgarcia/.node-gyp/16.1.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/jgarcia/projects/www/labs2/node_modules/sharp',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/common.cc:22:
npm ERR! In file included from /Users/jgarcia/.node-gyp/16.1.0/include/node/node.h:63:
npm ERR! In file included from /Users/jgarcia/.node-gyp/16.1.0/include/node/v8.h:30:
npm ERR! /Users/jgarcia/.node-gyp/16.1.0/include/node/v8-internal.h:452:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
npm ERR!             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
npm ERR!                                 ~~~~~^~~~~~~~~~~
npm ERR!                                      remove_cv
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:776:50: note: 'remove_cv' declared here
npm ERR! template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
npm ERR!                                                  ^
npm ERR! In file included from ../src/common.cc:24:
npm ERR! In file included from ../../nan/nan.h:2884:
npm ERR! ../../nan/nan_typedarray_contents.h:34:43: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
npm ERR!       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
npm ERR!                                           ^
npm ERR! /Users/jgarcia/.node-gyp/16.1.0/include/node/v8.h:5571:3: note: 'GetContents' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.")
npm ERR!   ^
npm ERR! /Users/jgarcia/.node-gyp/16.1.0/include/node/v8config.h:415:35: note: expanded from macro 'V8_DEPRECATED'
npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]
npm ERR!                                   ^
npm ERR! 1 warning and 1 error generated.
npm ERR! make: *** [Release/obj.target/sharp/src/common.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/Users/jgarcia/projects/www/labs2/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:365:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 20.4.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/16.1.0/bin/node" "/Users/jgarcia/projects/www/labs2/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/jgarcia/projects/www/labs2/node_modules/sharp
npm ERR! gyp ERR! node -v v16.1.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jgarcia/.npm/_logs/2021-05-17T19_57_10_951Z-debug.log
rodriguezmanu commented 3 years ago

`manu@Manuels-MacBook-Pro:~/Work/modusCreate/modusLabs/labs|master ⇒ npm i

added 1862 packages, and audited 1930 packages in 1m

85 vulnerabilities (22 low, 43 moderate, 18 high, 2 critical)

To address issues that do not require attention, run: npm audit fix

To address all issues, run: npm audit fix --force

Run npm audit for details. npm notice npm notice New minor version of npm available! 7.13.0 -> 7.16.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.16.0 npm notice Run npm install -g npm@7.16.0 to update! npm notice manu@Manuels-MacBook-Pro:~/Work/modusCreate/modusLabs/labs|master⚡ `

I am using node v12.15.0

probably this something relative nodejs version because you are using node -v v16.1.0 according this log

crissoca commented 3 years ago

Maybe include a .nvmrc file so we can set a specific node version?