tinajs/tina

sao mina my-app 报错

strange-fish opened this issue · 3 comments

使用sao 0.22.17可以正常安装, 但sao目前的版本1.2.0会报错。

npm ERR! 404 Not Found: sao-mina@latest

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/tmg2017/.npm/_logs/2018-11-13T08_33_20_683Z-debug.log
/usr/local/lib/node_modules/sao/lib/installPackages.js:89
        throw new SAOError(`Failed to install ${packageName} in ${cwd}`)
        ^

Error: Failed to install sao-mina@latest in /Users/tmg2017/.sao/V1/packages/4bbaad60
    at ChildProcess.ps.on.code (/usr/local/lib/node_modules/sao/lib/installPackages.js:89:15)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:557:12)

是的,sao@1.x 更改了模板包的命名约定。

因为我目前在外地,暂时只能 更新安装文档,将 sao 的版本固定在 0.x 了:

npm i -g sao@0.x

为带来的不便感到抱歉 😟

还没好么?
想用最新版的说
1.3.0也不行啊