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

svrx无法启动 #191

Closed
Assone opened this issue Dec 6, 2020 · 6 comments
Closed

svrx无法启动 #191

Assone opened this issue Dec 6, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@Assone
Copy link

Assone commented Dec 6, 2020

Describe the bug
svrx无法启动并报错

To Reproduce
Steps to reproduce the behavior:

  1. 打开终端
  2. 输入svrx
  3. 出现报错[error] Error: install error: package '@svrx/svrx' not found: must call as: npm.load(callback)
  • OS: macOS 11.0.1
  • Node: v15.2.1
  • Browser: chrome
@Assone Assone added the bug Something isn't working label Dec 6, 2020
@project-bot project-bot bot added this to To do in Main Project of Server-X Dec 6, 2020
@xuchaoying
Copy link
Member

svrx 安装的方式是怎么样的呢? 安装过程有没有报错?

@Assone
Copy link
Author

Assone commented Dec 16, 2020

svrx 安装的方式是怎么样的呢? 安装过程有没有报错?

yarn global add @svrx/cli或者npm install -g @svrx/cli安装的,安装的时候没有报错,就启动的时候会报这个错误

@arihantverma
Copy link

facing the same issue while trying to run this eleventy starter — https://github.com/brycewray/eleventy_solo_starter_njk. Installed @svrx/cli globally like @Assone did.

@xuchaoying
Copy link
Member

It seems a bug of npm@7.

In the version of 6 and former versions, npm.load() accepts two arguments: cli options and callback, but now at 7 it only accepts one argument as callback, see the code.

While its changelog says that

npm.load() MUST be called with two arguments (the parsed cli options and a callback).

You can try npm@6 temporarily. And we'll try to abandon npm.load() very soon. @Assone @arihantverma

xuchaoying added a commit that referenced this issue Feb 23, 2021
xuchaoying added a commit that referenced this issue Feb 23, 2021
xuchaoying added a commit that referenced this issue Feb 23, 2021
xuchaoying added a commit that referenced this issue Mar 24, 2021
xuchaoying added a commit that referenced this issue Mar 25, 2021
xuchaoying added a commit that referenced this issue Mar 25, 2021
* fix(util): use child_process to exec npm commands directly

avoid use npm api: #191

* fix: filter npm warnings

* build: add node@15 for test

* fix: fix package not found error on windows

* fix: fix npm view error on windows
@xuchaoying
Copy link
Member

Fixed on @svrx/svrx@1.1.6

Main Project of Server-X automation moved this from To do to Archived Mar 25, 2021
@Assone
Copy link
Author

Assone commented Mar 26, 2021

it still not work

[error] Error: install failed: Error: Command failed:
      npm install --prefix=/var/folders/nb/kty93txs6jx4lwvdr6vbqt8h0000gn/T/tmp-457087uAbCdf7MVOc @svrx/svrx@1.1.6 -g

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npm.taobao.org/@babel/highlight/-/highlight-7.13.10.tgz - [not_found] document not found
npm ERR! 404
npm ERR! 404  '@babel/highlight@https://registry.npm.taobao.org/@babel/highlight/-/highlight-7.13.10.tgz' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/reset0/.npm/_logs/2021-03-26T15_11_16_784Z-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

3 participants