You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to manually run npm i inside the CLI package to resolve the error. What version of Blockstack.js are you using?
v1.2.4 Is the bug present in the Blockstack CLI, Gaia hub, Connect or Blockstack Browser?
Blockstack CLI To Reproduce
Steps to reproduce the behavior:
Run npm install -g @stacks/cli
Run stx
Expected behavior stx runs with no issues after installing stacks CLI.
Desktop (please complete the following information):
OS: MacOS Big Sur v11.1
The text was updated successfully, but these errors were encountered:
rlin415
changed the title
Package.json missing script to auto-install dependencies after installing package
CLI's package.json missing script to auto-install dependencies after CLI installation
Mar 5, 2021
You'll need to install typescript locally since v8, it's using require.resolve which has its own separate limitations but is used to resolve a different issue. That means typescript is resolved from where you're running it right now.
ts-node has typescript as a peerDependency, and peer dependencies are not installed by default from NPM v3-v6. NPM 7 reintroduced the automatic installation of peer dependencies.
The issue is no longer present on the latest NPM version. To fix it for those using older versions of NPM, listing typescript as a dependency is the only solution.
Describe the bug
After running
npm install -g @stacks/cli
, I tried using thestx
command which failed with this error message:I had to manually run
npm i
inside the CLI package to resolve the error.What version of Blockstack.js are you using?
v1.2.4
Is the bug present in the Blockstack CLI, Gaia hub, Connect or Blockstack Browser?
Blockstack CLI
To Reproduce
Steps to reproduce the behavior:
npm install -g @stacks/cli
stx
Expected behavior
stx
runs with no issues after installing stacks CLI.Console log
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: