2016-09-20 92 views
0

我想按照从Github安装响应CMS的安装说明。回应6安装错误与angular2-jwt.js

我正在使用gulp将文件复制到公用文件夹。

https://respondcms.com/documentation/installation-from-github,它是在步骤2中

第三个命令这是我打字gulp到我的终端后,越来越短的误差。我目前从diamond/app文件夹调用这个命令。 (钻石是我的回应别名)

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

在努力提供更多的细节下面我从我输入命令的地方,我停止点提供的所有终端的数据。

[email protected] [~/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 
[email protected] [~/public_html/diamond/app]# 

UPDATE

经过进一步检验,似乎angular2-jwt/angular2-jwt.js甚至没有加载node_modules文件夹内。所以我的问题是,响应CMS是否需要该模块,或者是我可以忽略的东西,只需更改gulpfile.js文件以不包含它?

如果它仍然是需要的东西,我该如何去把它添加到node_modules文件夹?

回答

0

我也遇到过这个问题,我不是绝对的,为什么它从respondcms安装中丢失,但你可以安装模块并继续前进。

从respondcms应用程序/目录:

npm install angular2-jwt 

咕嘟咕嘟应该正常工作即可。祝你好运。