Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error When NPM install & when trying to run #2

Open
talmax1124 opened this issue Aug 6, 2021 · 1 comment
Open

Error When NPM install & when trying to run #2

talmax1124 opened this issue Aug 6, 2021 · 1 comment

Comments

@talmax1124
Copy link

Terminal:

@talmax1124
Copy link
Author

There was a problem loading the local develop command. Gatsby may not be installed in your
site's "node_modules" directory. Perhaps you need to run "npm install"? You might need to
delete your "package-lock.json" as well.

n%
~/gatlify $ npm install
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated ini@1.3.4: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated domelementtype@1.3.0: update to domelementtype@1.3.1
npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm WARN deprecated items@2.1.1: This module has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version of hapi to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated is-buffer@1.1.5: This version of 'is-buffer' is out-of-date. You must update to v1.1.6 or newer
npm WARN deprecated remotedev-serialize@0.1.0: Package moved to @redux-devtools/serialize.
npm WARN deprecated browserslist@2.4.0: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated flat@2.0.1: Fixed a prototype pollution security issue in 2.0.1, please upgrade to ^2.0.2 or ^5.0.1.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated gatsby-image@1.0.55: This package has been deprecated in favor of gatsby-plugin-image. The migration guide can be found here: https://www.gatsbyjs.com/docs/reference/release-notes/image-migration-guide/.
npm WARN deprecated redux-devtools-instrument@1.8.2: Package moved to @redux-devtools/instrument.
npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated clone@1.0.2: XSS vulnerability fixed in v1.0.3
npm WARN deprecated extract-text-webpack-plugin@1.0.1: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated sw-precache@5.2.1: Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw
npm WARN deprecated pkg-resolve@0.1.14: Not maintained anymore.
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated sane@1.7.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated uuid@3.1.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@2.0.3: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@2.0.3: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@2.0.3: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated sw-toolbox@3.6.0: Please migrate to Workbox: https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated postcss-cssnext@2.11.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
npm WARN deprecated buffer@4.9.1: This version of 'buffer' is out-of-date. You must update to v4.9.2 or newer
npm WARN deprecated joi@12.0.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated joi@9.0.0-0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated uws@0.14.5: New code is available at github.com/uNetworking/uWebSockets.js
npm WARN deprecated core-js@1.2.7: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@1.2.7: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.5.1: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /Users/carlitos/gatlify/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/carlitos/.npm/_libvips/libvips-8.6.1-darwin-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@16.6.0 | darwin | x64
npm ERR! gyp info find Python using Python version 3.8.2 found at "/Applications/Xcode.app/Contents/Developer/usr/bin/python3"
npm ERR! (node:63095) [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 /Applications/Xcode.app/Contents/Developer/usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/carlitos/.nvm/versions/node/v16.6.0/lib/node_modules/npm/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/carlitos/gatlify/node_modules/sharp/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/carlitos/.nvm/versions/node/v16.6.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/carlitos/Library/Caches/node-gyp/16.6.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/carlitos/Library/Caches/node-gyp/16.6.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/carlitos/.nvm/versions/node/v16.6.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/carlitos/Library/Caches/node-gyp/16.6.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/carlitos/gatlify/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/carlitos/Library/Caches/node-gyp/16.6.0/include/node/node.h:63:
npm ERR! In file included from /Users/carlitos/Library/Caches/node-gyp/16.6.0/include/node/v8.h:30:
npm ERR! /Users/carlitos/Library/Caches/node-gyp/16.6.0/include/node/v8-internal.h:488: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>::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 struct _LIBCPP_TEMPLATE_VIS remove_cv
npm ERR! ^
npm ERR! In file included from ../src/common.cc:27:
npm ERR! ../src/common.h:82:20: error: no member named 'Handle' in namespace 'v8'
npm ERR! bool HasAttr(v8::Handlev8::Object obj, std::string attr);
npm ERR! ~~~~^
npm ERR! ../src/common.h:82:37: error: expected '(' for function-style cast or type construction
npm ERR! bool HasAttr(v8::Handlev8::Object obj, std::string attr);
npm ERR! ~~~~~~~~~~^
npm ERR! ../src/common.h:82:39: error: use of undeclared identifier 'obj'
npm ERR! bool HasAttr(v8::Handlev8::Object obj, std::string attr);
npm ERR! ^
npm ERR! ../src/common.h:82:56: error: expected '(' for function-style cast or type construction
npm ERR! bool HasAttr(v8::Handlev8::Object obj, std::string attr);
npm ERR! ~~~~~~~~~~~ ^
npm ERR! ../src/common.h:83:29: error: no member named 'Handle' in namespace 'v8'
npm ERR! std::string AttrAsStr(v8::Handlev8::Object obj, std::string attr);
npm ERR! ~~~~^
npm ERR! ../src/common.h:83:46: error: expected '(' for function-style cast or type construction
npm ERR! std::string AttrAsStr(v8::Handlev8::Object obj, std::string attr);
npm ERR! ~~~~~~~~~~^
npm ERR! ../src/common.h:83:48: error: use of undeclared identifier 'obj'
npm ERR! std::string AttrAsStr(v8::Handlev8::Object obj, std::string attr);
npm ERR! ^
npm ERR! ../src/common.h:83:65: error: expected '(' for function-style cast or type construction
npm ERR! std::string AttrAsStr(v8::Handlev8::Object obj, std::string attr);
npm ERR! ~~~~~~~~~~~ ^
npm ERR! ../src/common.h:84:37: warning: variable templates are a C++14 extension [-Wc++14-extensions]
npm ERR! template v8::Local AttrAs(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ^
npm ERR! ../src/common.h:84:48: error: no member named 'Handle' in namespace 'v8'
npm ERR! template v8::Local AttrAs(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ~~~~^
npm ERR! ../src/common.h:84:65: error: expected '(' for function-style cast or type construction
npm ERR! template v8::Local AttrAs(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ~~~~~~~~~~^
npm ERR! ../src/common.h:84:67: error: use of undeclared identifier 'obj'
npm ERR! template v8::Local AttrAs(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ^
npm ERR! ../src/common.h:84:84: error: expected '(' for function-style cast or type construction
npm ERR! template v8::Local AttrAs(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ~~~~~~~~~~~ ^
npm ERR! ../src/common.h:84:89: error: expected ';' at end of declaration
npm ERR! template v8::Local AttrAs(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ^
npm ERR! ;
npm ERR! ../src/common.h:84:90: error: expected unqualified-id
npm ERR! template v8::Local AttrAs(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ^
npm ERR! ../src/common.h:87:26: warning: variable templates are a C++14 extension [-Wc++14-extensions]
npm ERR! template T AttrTo(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ^
npm ERR! ../src/common.h:87:37: error: no member named 'Handle' in namespace 'v8'
npm ERR! template T AttrTo(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ~~~~^
npm ERR! ../src/common.h:87:54: error: expected '(' for function-style cast or type construction
npm ERR! template T AttrTo(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ~~~~~~~~~~^
npm ERR! ../src/common.h:87:56: error: use of undeclared identifier 'obj'
npm ERR! template T AttrTo(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ^
npm ERR! ../src/common.h:87:73: error: expected '(' for function-style cast or type construction
npm ERR! template T AttrTo(v8::Handlev8::Object obj, std::string attr) {
npm ERR! ~~~~~~~~~~~ ^
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 2 warnings and 20 errors 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/carlitos/.nvm/versions/node/v16.6.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 20.6.0
npm ERR! gyp ERR! command "/Users/carlitos/.nvm/versions/node/v16.6.0/bin/node" "/Users/carlitos/.nvm/versions/node/v16.6.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/carlitos/gatlify/node_modules/sharp
npm ERR! gyp ERR! node -v v16.6.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/carlitos/.npm/_logs/2021-08-06T02_14_11_090Z-debug.log
~/gatlify $ \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant