Comments (7)
I believe I also just ran into this, but just to be sure I'll mention my scenario. (if it ends up being issue, I can gladly open another issue)
given the following file structure
folder/app.js
dist/
input/folder -> ../folder
input/foo.js
running
var ncp = require('ncp');
ncp('input', 'dist', {
dereference: true,
clobber: true,
stopOnErr: true,
limit: 2
}, function(err, result) {
console.log(err, result);
});
also results in 100% CPU.
± % npm version
{ foo: '0.0.0',
npm: '2.3.0',
ares: '1.10.0-DEV',
http_parser: '2.4',
modules: '42',
node: '1.0.4',
openssl: '1.0.1k',
uv: '1.2.1',
v8: '4.1.0.12',
zlib: '1.2.8' }
from ncp.
I have the same issue on io.js/ubuntu, it breaks phantomjs installation script which uses ncp.
from ncp.
Related: uncss/uncss#142
from ncp.
The discussion in #80 proposes to drop support for Node v0.8, remove the no longer needed version sniffer and release [email protected]
.
from ncp.
OMG classic version-sniffing problems, it's like browsers or if (osVersion[0] === "9") { /* is Windows 95 or Windows 98 */ }
all over again.
from ncp.
Fixed by removing the version check altogether in b920f53. Sorry for the massive delay on this folks.
from ncp.
This was released as v2.0.0
BTW.
from ncp.
Related Issues (20)
- Is this library abounded? Files are not copied when the callback is called! HOT 2
- Filter not working as expected HOT 1
- There is no `--dereference` option
- error in useage for options
- EEXIST: file already exists, mkdir
- Callback is triggered even if not finished HOT 2
- Can`t copy simlink on mounted windows samba shares.
- Filter is not working HOT 4
- callback not called HOT 2
- Add options for copy HOT 1
- Copy files recursively to the destination in Windows creating unwanted folders HOT 12
- How to apply filter on files only?
- silence mode
- Audit vulnerabilities detected in the ncp project on Tag: v2.0.0
- Race condition when 2 calls copying files to the same nonexistent directory
- Race condition when 2 calls copying files to the same directory
- Callback is called before file is copied
- Race condition when 2 calls copying files to the same path
- Another race condition when 2 calls copying files to the same path
- Add vars
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 ncp.