我使用的是ember v1.13.15,node:5.4.1,npm 2.14.10和os linux x64(ubuntu)。我实际上是想让ember-cli进入我的rails应用程序。执行ember new frontend
时,我得到了一堆文件的输出。这些文件不会通过ls显示在nautilus,终端中,也不能进入目录。我手动输入mkdir frontend && cd frontend
然后ember init
,结果相同。如果我再次运行ember init
,它会识别文件在那里,因为它询问我是否要覆盖某些文件。
运行ember build
会产生成功的构建,但文件在哪里?
已更新终端
uhoh@eblinux:~/Documents/apps/mvp$ cd frontendconsumer/
uhoh@eblinux:~/Documents/apps/mvp/frontendconsumer$ ls
uhoh@eblinux:~/Documents/apps/mvp/frontendconsumer$ ember init
version: 1.13.15
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
installing app
identical .bowerrc
identical .editorconfig
identical .ember-cli
identical .jshintrc
identical .travis.yml
identical .watchmanconfig
identical README.md
identical app/app.js
identical app/index.html
identical app/router.js
identical app/templates/application.hbs
identical bower.json
identical config/environment.js
identical ember-cli-build.js
identical .gitignore
identical package.json
identical public/crossdomain.xml
identical public/robots.txt
identical testem.json
identical tests/.jshintrc
identical tests/helpers/destroy-app.js
identical tests/helpers/module-for-acceptance.js
identical tests/helpers/resolver.js
identical tests/helpers/start-app.js
identical tests/index.html
identical tests/test-helper.js
Installed packages for tooling via npm.
Installed browser packages via Bower.
uhoh@eblinux:~/Documents/apps/mvp/frontendconsumer$ ls
uhoh@eblinux:~/Documents/apps/mvp/frontendconsumer$ ls -a
. ..
更新v2
uhoh@eblinux:~/Documents/apps/mvp/frontendconsumer$ locate test-helper.js --all
/home/uhoh/Documents/apps/integration/node_modules/jshint/node_modules/htmlparser2/test/test-helper.js
/home/uhoh/Documents/apps/newapp/node_modules/jshint/node_modules/htmlparser2/test/test-helper.js
/home/uhoh/Documents/apps/vd-integrations/test/test-helper.js
/home/uhoh/Downloads/ace1.3.1/mustache/js/node_modules/htmlparser2/tests/test-helper.js
/home/uhoh/Downloads/ace1_3.0/mustache/js/node_modules/htmlparser2/tests/test-helper.js
/home/uhoh/Downloads/ace3/mustache/js/node_modules/htmlparser2/tests/test-helper.js
/home/uhoh/consumer_frontend/node_modules/ember-cli/blueprints/app/files/tests/test-helper.js
/home/uhoh/consumer_frontend/node_modules/ember-cli-babel/tests/test-helper.js
/home/uhoh/consumer_frontend/node_modules/ember-cli-content-security-policy/tests/test-helper.js
/home/uhoh/consumer_frontend/node_modules/ember-cli-qunit/node_modules/broccoli-jshint/node_modules/jshint/node_modules/htmlparser2/test/test-helper.js
答案 0 :(得分:0)
我无法发表评论,因此我将为您提供两个主要选项:
卸载所有与ember相关的软件包,并将节点推送到5.6.0,将npm推送到3.6.0(我使用的版本。)
npm uninstall -g ember-cli
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
探测frontendconsumer文件夹中的文件:
如果这些选项都没有帮助,那么在构建新应用程序时会发生一些非常奇怪的事情......如果您的系统上没有其他问题,请尝试通过RVM创建一个rails应用程序以查看是否存在一个新的应用程序的脚手架工作。如果确实如此,那么npm,node或ember包中的东西很可能是坏的。否则,它可能是您的系统。