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

wepy cli 1.7.0炸了 只好用1.6.0了 #2021

Closed
tinybright opened this issue Dec 28, 2018 · 12 comments
Closed

wepy cli 1.7.0炸了 只好用1.6.0了 #2021

tinybright opened this issue Dec 28, 2018 · 12 comments

Comments

@tinybright
Copy link

qq 20181228181244

@jockchen
Copy link

jockchen commented Jan 7, 2019

1.7+是真的炸了,cnpm install wepy-cli -g 安装完成以后各种报错,1.6.0还可以用

@marskid
Copy link

marskid commented Jan 9, 2019

确实挂了

C:\Users\Administrator>npm install -g wepy-cli
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\.staging\smartwrap-7f1813eb\e'
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-01-09T02_40_06_749Z-debug.log

yarn

C:\Users\Administrator>yarn global add wepy-cli
yarn global v1.12.3
[1/4] Resolving packages...
[2/4] Fetching packages...
error https://registry.yarnpkg.com/smartwrap/-/smartwrap-1.0.10.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, open 'C:\\Users\\Administrator\\AppData\\Local\\Yarn\\Cache\\v4\\npm-smartwrap-1.0.10-873ef350d4ee1262fed4a80a55634d86ae1faf48\\node_modules\\smartwrap\\e'"
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

@tinybright
Copy link
Author

可以找安装过的把npm安装目录里的cli包打成zip包

@Young1993
Copy link

我用的1.7.2

@marskid
Copy link

marskid commented Jan 9, 2019

因为引用的"tty-table": "^2.5.5"引用了smartwrap多了特殊文件名导致失败,尝试了很多方法没法替换掉smartwrap-1.0.10.tgz。Yarn就没有使用本地依赖进行安装的功能?挂了就只能等着?
tecfu/smartwrap#2

@tinybright
Copy link
Author

主要官方去搞wepy2去了 没人管这边

@freemanercom
Copy link

我今天也遇到这个问题,谷歌了一下午了,官方不给解决吗?

@marskid
Copy link

marskid commented Jan 9, 2019

这个问题不影响Linux平台下的安装。我是在Linux下用npm install -g wepy-cli安装完后删除smartwrap文件名异常的文件,打包复制wepy-cli安装目录出来放到Windows平台直接运行。

PS D:\> node .\wepy-cli\bin\wepy.js init standard myapp
PS D:\> cd myapp
PS D:\myapp> yarn install
PS D:\myapp> node ..\wepy-cli\bin\wepy.js build --watch

@tecfu
Copy link
Contributor

tecfu commented Jan 13, 2019

Fixed. Update smartwrap to v 1.0.11. For more info, see: tecfu/smartwrap#2. Thanks.

@tecfu
Copy link
Contributor

tecfu commented Jan 16, 2019

Please see PR's at #2043, #2044 for patches.

@Gcaufy
Copy link
Collaborator

Gcaufy commented Jan 16, 2019

@tinybright 这里的问题解决了吗?

@tinybright
Copy link
Author

@Gcaufy 具体没看,没在做项目 @tecfu

Gcaufy pushed a commit that referenced this issue Jan 16, 2019
Gcaufy pushed a commit that referenced this issue Jan 16, 2019
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

7 participants