Comments (2)
如果用cnpm i,会报下面的错误,如何破?
Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed (writeStream "error") (writeStream "error"), GET https://cdn.npm.taobao.org/%40babel/plugin-syntax-async-generators/-/%40babel/plugin-syntax-async-generators-7.7.4.tgz 200 (connected: true, keepalive socket: false, agent status: {"createSocketCount":356,"createSocketErrorCount":0,"closeSocketCount":327,"errorSocketCount":0,"timeoutSocketCount":1,"requestCount":1207,"freeSockets":{"r.npm.taobao.org:443::::::::true::::::::::":10,"registry.npm.taobao.org:443::::::::true::::::::::":3},"sockets":{"cdn.npm.taobao.org:443::::::::true::::::::::":10,"registry.npm.taobao.org:443::::::::true::::::::::":6},"requests":{"cdn.npm.taobao.org:443::::::::true::::::::::":10}}, socketHandledRequests: 1, socketHandledResponses: 1)
headers: {"server":"Tengine","content-type":"application/octet-stream","content-length":"1506","connection":"keep-alive","date":"Tue, 10 Dec 2019 02:27:08 GMT","x-oss-request-id":"5DEF027CB1F7903231447C12","accept-ranges":"bytes","etag":""843AAF58E06B7CB275C08B5995CD0851"","last-modified":"Fri, 22 Nov 2019 23:32:00 GMT","x-oss-object-type":"Normal","x-oss-hash-crc64ecma":"10225766706247814442","x-oss-storage-class":"Standard","cache-control":"max-age=0, s-maxage=86400","content-md5":"hDqvWOBrfLJ1wItZlc0IUQ==","x-oss-server-time":"2","age":"55571","ali-swift-global-savetime":"1574902974","x-cache":"HIT TCP_MEM_HIT dirn:10:163326797","x-swift-savetime":"Tue, 10 Dec 2019 02:27:08 GMT","x-swift-cachetime":"86400","via":"vcache19.cn1884[0,200-0,H], vcache6.cn1884[2,0]","timing-allow-origin":"*","eagleid":"3a31f81a15760003997966420e"}
at doWrite (_stream_writable.js:411:19)
at writeOrBuffer (_stream_writable.js:399:5)
at WriteStream.Writable.write (_stream_writable.js:299:11)
at IncomingMessage.ondata (_stream_readable.js:693:20)
at IncomingMessage.emit (events.js:197:13)
at IncomingMessage.Readable.read (_stream_readable.js:491:10)
at flow (stream_readable.js:957:34)
at resume (_stream_readable.js:938:3)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
from taro-demo.
整个目录搜copy,把下面代码注释掉
defineConstants: {},
// copy: {
// patterns: [],
// options: {}
// },
weapp: {
注释掉以后,ValidationError: CopyPlugin Invalid Options的问题就解决了
去npm i
然后再npm run dev:h5,就跑起来了。
如果是npm i后出错的,注释代码了,还需要删除node_modules,再重新 npm i
这个问题解决,是搜到https://taro-club.jd.com/topic/946/npm-run-dev-h5%E6%8A%A5%E9%94%99-validationerror-copyplugin-invalid-options/35
这个链接也有ValidationError: CopyPlugin Invalid Options的问题。
吐槽:搜索功能是假的,其它还没仔细看
from taro-demo.
Related Issues (12)
- dev:h5 运行出错 HOT 1
- 微信小程序上面,底部下面四个导航栏没有居中 HOT 1
- RN环境需要什么吗? HOT 1
- 项目启动不了 HOT 8
- 报 Taro CLI 版本错误
- 微信小程序跑不起来 HOT 5
- 还维护么? HOT 2
- app适配成功了吗
- H5 页面不能完整展示 HOT 1
- 项目无法运行
- 有点老了 , 什么时候适配taro3哇
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taro-demo.