Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js Ember.js 2.7不使用纱线构建-使用npm构建_Node.js_Ember.js_Yarnpkg - Fatal编程技术网

Node.js Ember.js 2.7不使用纱线构建-使用npm构建

Node.js Ember.js 2.7不使用纱线构建-使用npm构建,node.js,ember.js,yarnpkg,Node.js,Ember.js,Yarnpkg,版本: ember.js 2.7,ember数据2.7 ember cli 2.9.1//对于ember cli 2.7也是如此 节点6.9.1、npm 3.10.9//对于节点4.4.4和npm 2.15.5也是如此 麦卡皮坦酒店 复制步骤: rm-射频节点模块、天线盒组件 纱线 bower安装 ember s或ember build 症状: 如果在安装后执行npm安装,控制台输出为: 如果我rm-Rf node_模块并执行标准的npm安装,则构建工作不会像以前一样出现错误 有

版本:

  • ember.js 2.7,ember数据2.7
  • ember cli 2.9.1//对于ember cli 2.7也是如此
  • 节点6.9.1、npm 3.10.9//对于节点4.4.4和npm 2.15.5也是如此
  • 麦卡皮坦酒店
复制步骤:

  • rm-射频节点模块、天线盒组件
  • 纱线
  • bower安装
  • ember s
    ember build
症状:



如果在安装后执行
npm安装
,控制台输出为:



如果我
rm-Rf node_模块
并执行标准的
npm安装
,则构建工作不会像以前一样出现错误

有什么想法吗

更新:由
npm install
warn
构建的节点模块文件夹的差异:


仅在纱线\节点\模块/:.纱线完整性

仅适用于纱线\节点\模块/:ansi

仅在纱线\节点\模块/:ansistyles中

仅在纱线\节点\模块/:archy中

仅在纱线\节点\模块/:异步一些

仅在纱线\节点\模块/:内置

仅在纱线\节点\模块/:char spinner中

仅在纱线节点模块中/:chmodr

仅在纱线\节点\模块/:chownr中

仅在纱线\节点\模块/:cmd垫片中

仅在纱线\节点\模块/:columnify中

仅在纱线\节点\模块/:配置链中

仅在节点模块中/:debuglog

仅在纱线\节点\模块中/:默认值

仅在纱线节点模块中/:dezalgo

仅在线程\节点\模块/:dom存储中

仅在节点模块/:编辑器中

仅在纱线节点模块中/:esprima

仅在纱线_节点_模块/:fs真空中

仅在纱线\节点\模块/:fs中写入原子流

仅在纱线\节点\模块/:fstream忽略

仅在纱线\节点\模块/:fstream npm中

仅在Thread_node_modules/:git中的github url中

仅在Thread_node_modules/:用户名repo中的github url中

仅在纱线_节点_模块/:ic ajax中

仅在纱线\节点\模块/:ifer中

仅在Thread_node_modules/:init package json中

仅在纱线\节点\模块/:jju中

仅在线程节点模块中/:json parse helpfulerror

仅在纱线\节点\模块/:锁定文件中

仅在纱线\节点\模块/:lodash.pad中

仅在纱线\节点\模块/:lodash.padend中

仅在纱线\节点\模块/:lodash.padstart中

仅在纱线\节点\模块/:规范化git url

仅在节点模块中/:npm缓存文件名

仅在纱线\节点\模块/:npm安装检查中

仅在线程\节点\模块/:npm注册表客户端中

仅在纱线\节点\模块/:npm用户验证中

仅在纱线\节点\模块/:开瓶器中

仅在纱线\节点\模块/:路径在内部

仅在纱线节点模块中/:promzard

仅在纱线\节点\模块/:原型列表中

仅在纱线\节点\模块/:读取

仅在纱线\节点\模块/:读取已安装

仅在线程节点模块中/:读取包json

仅在纱线\节点\模块/:readdir作用域模块中

仅在纱线\节点\模块/:实现包装说明符

仅在节点模块/中:重试

仅在纱线\节点\模块/:sha中

仅在纱线\节点\模块/:sigmund中

仅在纱线\节点\模块/:排序对象中

仅在纱线\节点\模块/:文本表中

仅在纱线\节点\模块中/:uid编号

仅在纱线\节点\模块/:umask中

仅在纱线\节点\模块/:验证npm包名称

仅在纱线\节点\模块中/:wcwidth



我遇到了同样的事情。我发现另一个解决方法是将ember cli qunit降级到v1.4.0,它还允许使用Thread构建模块。

Thread在清理阶段默认删除许多包。Ember cli qunit需要运行映像目录,但默认情况下会将其删除

更新.yarnclean文件并替换以下行:

图像

!!图像


这将保留所有图像目录,如果需要更详细的说明,您可以优化regexp。

我将npm install构建的npm_模块文件夹和Thread构建的npm_模块文件夹与simple
diff-q
进行了比较。我不明白的是为什么其他人没有这个问题。应该有很多Thread和ember cli用户遇到了这个问题。只有显式运行
Thread clean
@shawnn42,才能创建.yarnclean文件。我认为这需要是“Thread autoclean--init”。@Brake在撰写该评论时,Thread clean也会添加该文件(无需显式请求)我不确定情况是否仍然如此。@shawnn42在我尝试时,它没有创建它,使用autoclean它创建了文件。我甚至在上找不到“clean”命令,看起来他们已经删除了它??
Build failed.
The Broccoli Plugin: 

[Funnel: Funnel
  vendor/ember-cli-qunit/images
  /assets
 include:2] failed with:

Error: ENOENT: no such file or directory, scandir '/Users/somePath/client/tmp/funnel-input_base_path-nIg5n9K9.tmp/0/vendor/ember-cli-qunit/images/'
    at Error (native)
    at Object.fs.readdirSync (fs.js:951:18)
    at FSMonitor._measure (/Users/somePath/client/node_modules/heimdalljs-fs-monitor/index.js:66:21)
    at Object.readdirSync (/Users/somePath/client/node_modules/heimdalljs-fs-monitor/index.js:82:30)
    at _walkSync (/Users/somePath/client/node_modules/broccoli-funnel/node_modules/walk-sync/index.js:64:18)
    at Function.entries (/Users/somePath/client/node_modules/broccoli-funnel/node_modules/walk-sync/index.js:40:10)
    at Funnel.processFilters (/Users/somePath/client/node_modules/broccoli-funnel/index.js:264:26)
    at Funnel.build (/Users/somePath/client/node_modules/broccoli-funnel/index.js:202:10)
    at /Users/somePath/client/node_modules/broccoli-plugin/read_compat.js:61:34
    at tryCatch (/Users/somePath/client/node_modules/rsvp/dist/rsvp.js:538:12)

The broccoli plugin was instantiated at:
    at Funnel.Plugin (/Users/somePath/client/node_modules/broccoli-plugin/index.js:7:31)
    at new Funnel (/Users/somePath/client/node_modules/broccoli-funnel/index.js:56:10)
    at /Users/somePath/client/node_modules/ember-cli/lib/broccoli/ember-app.js:1474:12
    at Array.map (native)
    at EmberApp.otherAssets (/Users/somePath/client/node_modules/ember-cli/lib/broccoli/ember-app.js:1468:61)
    at EmberApp.toArray (/Users/somePath/client/node_modules/ember-cli/lib/broccoli/ember-app.js:1642:10)
    at EmberApp.toTree (/Users/somePath/client/node_modules/ember-cli/lib/broccoli/ember-app.js:1662:30)
    at module.exports (/Users/somePath/client/ember-cli-build.js:67:16)
    at CoreObject.setupBroccoliBuilder (/Users/somePath/client/node_modules/ember-cli/lib/models/builder.js:70:19)
    at CoreObject.init (/Users/somePath/client/node_modules/ember-cli/lib/models/builder.js:50:10)
npm WARN prefer global jshint@2.9.4 should be installed with -g
npm WARN prefer global marked@0.3.6 should be installed with -g
npm WARN prefer global node-gyp@3.3.1 should be installed with -g

> node-sass@3.10.1 install /Users/somePath/client/node_modules/node-sass
> node scripts/install.js


> node-sass@3.10.1 postinstall /Users/somePath/client/node_modules/node-sass
> node scripts/build.js

"/Users/somePath/client/node_modules/node-sass/vendor/darwin-x64-46/binding.node" exists.
 testing binary.
Binary is fine; exiting.
npm WARN prefer global npm@3.10.9 should be installed with -g

> spawn-sync@1.0.15 postinstall /Users/somePathclient/node_modules/spawn-sync
> node postinstall

auth0-ember-simple-auth@1.1.0 node_modules/auth0-ember-simple-auth