question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rush update fails

See original GitHub issue

Before filling a bug

  • have you checked the faq for known issues.
  • have you checked existing issues

Describe the bug

I’m following the instructions in docs/internal/development.md to set up for development in autorest.

I did a fresh install of rush:

npm install -g @microsoft/rush

Then I ran rush update but this fails:

node_modules/.pnpm/tree-sitter@0.19.0/node_modules/tree-sitter: Running install script, failed in 5.5s
.../node_modules/tree-sitter install$ prebuild-install || node-gyp rebuild
β”‚ prebuild-install WARN install No prebuilt binaries found (target=16.14.2 runtime=node arch=arm64 libc= platform=darwin)
β”‚ gyp info it worked if it ends with ok
β”‚ gyp info using node-gyp@7.1.2
β”‚ gyp info using node@16.14.2 | darwin | arm64
β”‚ gyp info find Python using Python version 3.9.10 found at "/opt/homebrew/opt/python@3.9/bin/python3.9"
β”‚ (node:92282) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
β”‚ (Use `node --trace-deprecation ...` to show where the warning was created)
β”‚ gyp info spawn /opt/homebrew/opt/python@3.9/bin/python3.9
β”‚ gyp info spawn args [
β”‚ gyp info spawn args   '/Users/mikekistler/.rush/node-v16.14.2/pnpm-5.16.0/node_modules/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py',
β”‚ gyp info spawn args   'binding.gyp',
β”‚ gyp info spawn args   '-f',
β”‚ gyp info spawn args   'make',
β”‚ gyp info spawn args   '-I',
β”‚ gyp info spawn args   '/Users/mikekistler/Projects/Azure/autorest/common/temp/node_modules/.pnpm/tree-sitter@0.19.0/node_modules/tree-sitter/build/config.gypi',
β”‚ gyp info spawn args   '-I',
β”‚ gyp info spawn args   '/Users/mikekistler/.rush/node-v16.14.2/pnpm-5.16.0/node_modules/pnpm/dist/node_modules/node-gyp/addon.gypi',
β”‚ gyp info spawn args   '-I',
β”‚ gyp info spawn args   '/Users/mikekistler/Library/Caches/node-gyp/16.14.2/include/node/common.gypi',
β”‚ gyp info spawn args   '-Dlibrary=shared_library',
β”‚ gyp info spawn args   '-Dvisibility=default',
β”‚ gyp info spawn args   '-Dnode_root_dir=/Users/mikekistler/Library/Caches/node-gyp/16.14.2',
β”‚ gyp info spawn args   '-Dnode_gyp_dir=/Users/mikekistler/.rush/node-v16.14.2/pnpm-5.16.0/node_modules/pnpm/dist/node_modules/node-gyp',
β”‚ gyp info spawn args   '-Dnode_lib_file=/Users/mikekistler/Library/Caches/node-gyp/16.14.2/<(target_arch)/node.lib',
β”‚ gyp info spawn args   '-Dmodule_root_dir=/Users/mikekistler/Projects/Azure/autorest/common/temp/node_modules/.pnpm/tree-sitter@0.19.0/node_modules/tree-sitter',
β”‚ gyp info spawn args   '-Dnode_engine=v8',
β”‚ gyp info spawn args   '--depth=.',
β”‚ gyp info spawn args   '--no-parallel',
β”‚ gyp info spawn args   '--generator-output',
β”‚ gyp info spawn args   'build',
β”‚ gyp info spawn args   '-Goutput_dir=.'
β”‚ gyp info spawn args ]
β”‚ gyp info spawn make
β”‚ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
β”‚   CC(target) Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o
β”‚   LIBTOOL-STATIC Release/tree_sitter.a
β”‚   CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/binding.o
β”‚ In file included from ../src/binding.cc:1:
β”‚ In file included from /Users/mikekistler/Library/Caches/node-gyp/16.14.2/include/node/node.h:63:
β”‚ In file included from /Users/mikekistler/Library/Caches/node-gyp/16.14.2/include/node/v8.h:30:
β”‚ /Users/mikekistler/Library/Caches/node-gyp/16.14.2/include/node/v8-internal.h:492:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?
β”‚             !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
β”‚                                 ~~~~~^~~~~~~~~~~
β”‚                                      remove_cv
β”‚ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:710:50: note: 'remove_cv' declared here
β”‚ template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv
β”‚                                                  ^
β”‚ 1 error generated.
β”‚ make: *** [Release/obj.target/tree_sitter_runtime_binding/src/binding.o] Error 1
β”‚ gyp ERR! build error 
β”‚ gyp ERR! stack Error: `make` failed with exit code: 2
β”‚ gyp ERR! stack     at ChildProcess.onExit (/Users/mikekistler/.rush/node-v16.14.2/pnpm-5.16.0/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:194:23)
β”‚ gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
β”‚ gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
β”‚ gyp ERR! System Darwin 20.6.0
β”‚ gyp ERR! command "/opt/homebrew/Cellar/node@16/16.14.2/bin/node" "/Users/mikekistler/.rush/node-v16.14.2/pnpm-5.16.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
β”‚ gyp ERR! cwd /Users/mikekistler/Projects/Azure/autorest/common/temp/node_modules/.pnpm/tree-sitter@0.19.0/node_modules/tree-sitter
β”‚ gyp ERR! node -v v16.14.2
β”‚ gyp ERR! node-gyp -v v7.1.2
β”‚ gyp ERR! not ok 
└─ Failed in 5.5s
node_modules/.pnpm/jsonpath@1.0.0/node_modules/jsonpath: Running postinstall script, done in 81ms
 ERROR  Command failed with exit code 1.

The command failed:
 /Users/mikekistler/Projects/Azure/autorest/common/temp/pnpm-local/node_modules/.bin/pnpm install --store /Users/mikekistler/Projects/Azure/autorest/common/temp/pnpm-store --no-prefer-frozen-lockfile
ERROR: Error: The command failed with exit code 1

Expected behavior

rush update works.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mikekistlercommented, Mar 31, 2022

That fixes it!

2reactions
timotheeguerincommented, Mar 31, 2022

Ok I have been able to repro. This seems to be an issue with node 16 and building native dependencies. Version 0.20.0 of tree-sitter should have fixed it. Can you try going into packages/tools/compare/package.json and updating the version of tree-sitter to 0.20.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Rush] Getting error when running command "rush update"
When I am running rush update, it is showing error : The system cannot find the path specified. `The command failed:
Read more >
rush update
The "rush update" command installs the dependencies described in your package. json files, and updates the shrinkwrap file as needed. (This "shrinkwrap"
Read more >
Frequently Asked Questions (FAQ) - Rush.js
What's going on here?! The problem is that when you type commands like "gulp" or "rush", they are found in your system PATH,...
Read more >
rush install
fail and tell you to run "rush update" instead. This read-only nature is the main feature: Continuous integration builds should use "rush install"...
Read more >
Enabling CI builds - Rush.js
By "fail", we mean that the script will stop because Rush returned # a nonzero exit code. rush change -v # Install NPM...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found