使用angular2-jwt.js响应6安装错误

时间:2016-09-20 23:05:54

标签: angular gulp respondcms

我正在尝试按照安装说明从Github安装Respond CMS。

我无法使用gulp将文件复制到公用文件夹。

https://respondcms.com/documentation/installation-from-github,这是第2步的第三个命令。

这是我在输入typedef struct TRIE_NODE { char* word; struct TRIE_NODE* node[26]; //array of pointers (of type struct TRIE_NODE) }TRIE_NODE; 到我的终端后得到的错误。我目前正在从diamond / app文件夹中调用此命令。 (钻石是我回复的别名)

gulp

为了提供下面的更多详细信息,我提供了从我输入命令到我停止的地方的所有终端数据。

Error: File not found with singular glob: /home/userMasked/public_html/diamond/app/node_modules/angular2-jwt/angular2-jwt.js

更新

进一步检查后,userMasked@domainMasked [~/public_html/diamond/app]# gulp [17:56:08] Using gulpfile ~/public_html/diamond/app/gulpfile.js [17:56:08] Starting 'default'... [17:56:08] Starting 'copy-libs'... [17:56:12] Finished 'copy-libs' after 3.9 s [17:56:12] Starting 'copy-folders'... [17:56:12] Finished 'copy-folders' after 17 ms [17:56:12] Starting 'copy-files'... [17:56:12] 'copy-files' errored after 2.33 ms [17:56:12] Error: File not found with singular glob: /home/userMasked/public_html/diamond/app/node_modules/angular2-jwt/angular2-jwt.js at Glob.<anonymous> (/home/userMasked/public_html/diamond/app/node_modules/glob-stream/index.js:41:11) at Glob.g (events.js:291:16) at emitOne (events.js:96:13) at Glob.emit (events.js:188:7) at Glob._finish (/home/userMasked/public_html/diamond/app/node_modules/glob/glob.js:172:8) at done (/home/userMasked/public_html/diamond/app/node_modules/glob/glob.js:159:12) at Glob._processSimple2 (/home/userMasked/public_html/diamond/app/node_modules/glob/glob.js:652:12) at /home/userMasked/public_html/diamond/app/node_modules/glob/glob.js:640:10 at Glob._stat2 (/home/userMasked/public_html/diamond/app/node_modules/glob/glob.js:736:12) at lstatcb_ (/home/userMasked/public_html/diamond/app/node_modules/glob/glob.js:728:12) at RES (/home/userMasked/public_html/diamond/app/node_modules/inflight/inflight.js:23:14) at f (/home/userMasked/public_html/diamond/app/node_modules/once/once.js:25:25) at FSReqWrap.oncomplete (fs.js:123:15) [17:56:12] 'default' errored after 3.93 s userMasked@domainMasked [~/public_html/diamond/app]# 文件夹中甚至没有加载angular2-jwt/angular2-jwt.js。所以我的问题是,响应CMS是否需要该模块,或者它是我可以忽略的东西,只是将node_modules文件更改为不包含它?

如果仍然需要它,我该如何将它添加到node_modules文件夹?

1 个答案:

答案 0 :(得分:0)

我也遇到过这个问题,我不清楚为什么它会在responsecms安装中丢失,但你可以安装模块然后再继续。

来自respondcms app /目录:

npm install angular2-jwt

Gulp应该可以正常工作。祝你好运。