0

我正在尝试部署无服务器功能,但是我无法实现。

sls function deploy getBeeTokenProxy
Serverless: Deploying the specified functions in "dev" to the following regions: us-east-1
Serverless: - events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: Cannot find module 'nodent' from 'C:\dev\testproject\_meta\_tmp\getBeeTokenProxy@1491336313096\node_modules\ajv\lib'
    at C:\dev\testproject\node_modules\resolve\lib\async.js:46:31
    at processDirs (C:\dev\testproject\node_modules\resolve\lib\async.js:177:39)
    at ondir (C:\dev\testproject\node_modules\resolve\lib\async.js:192:13)
    at load (C:\dev\testproject\node_modules\resolve\lib\async.js:77:43)
    at onex (C:\dev\testproject\node_modules\resolve\lib\async.js:100:31)
    at C:\dev\testproject\node_modules\resolve\lib\async.js:23:47
    at FSReqWrap.oncomplete (fs.js:114:15)

无服务器-v 0.5.6

节点-v v7.8.0

任何想法?也许我使用了错误版本的无服务器。我有ajv@^4.9.1node_modules

4

1 回答 1

2
npm install nodent --save
npm install js-beautify --save

我把 --save 放在这里是因为这些库不在 MoonMail 的 package.json 中。

于 2017-04-05T15:20:22.313 回答