adogor / npm-autolink Goto Github PK
View Code? Open in Web Editor NEWNpm link done right, automatically create symlinks between your node modules
License: MIT License
Npm link done right, automatically create symlinks between your node modules
License: MIT License
I'm seeing the following environment
windows: 7
node: v4.2.6
npm: 2.14.12
npm-autolink: 0.3.1
I'm seeing the following crashes
npm-autolink list
<--- Last few GCs --->
29590 ms: Scavenge 1397.9 (1457.9) -> 1397.9 (1457.9) MB, 2.6 / 0 ms (+ 107.0 ms in 1 steps since last GC) [allocatio
n failure] [incremental marking delaying mark-sweep].
30454 ms: Mark-sweep 1397.9 (1457.9) -> 1397.8 (1457.9) MB, 864.0 / 3 ms (+ 201.0 ms in 12 steps since start of marki
ng, biggest step 107.0 ms) [last resort gc].
31347 ms: Mark-sweep 1397.8 (1457.9) -> 1397.8 (1457.9) MB, 893.0 / 3 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 000003FE5AFB4639
2: normalize [path.js:~182] [pc=0000021755EFBA52](this=00000243B1443AC9 <an Object with map 00000204B6E0B1C1>,path=
000001982C514529 <String[13]: E:.autolink)
3: join [path.js:~217] [pc=0000021755FA1554](this=00000243B1443AC9 <an Object with map 00000204B6E0B1C1)
4: arguments adaptor frame: 2->0
5: getDevPackagesFromPath(aka getDevPackagesFromPath) [C:\Users\pgreen\AppDat...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
npm-autolink matches
<--- Last few GCs --->
26428 ms: Scavenge 1404.3 (1457.9) -> 1404.3 (1457.9) MB, 6.2 / 0 ms (+ 25.0 ms in 1 steps since last GC) [allocation
failure] [incremental marking delaying mark-sweep].
27498 ms: Mark-sweep 1404.3 (1457.9) -> 1404.3 (1457.9) MB, 1070.2 / 3 ms (+ 867.0 ms in 3387 steps since start of ma
rking, biggest step 25.0 ms) [last resort gc].
28570 ms: Mark-sweep 1404.3 (1457.9) -> 1404.2 (1457.9) MB, 1071.8 / 3 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 000003B6EF3B4639
2: normalize [path.js:~182] [pc=00000315BCAA1C32](this=0000037324A44271 <an Object with map 0000024202D0B1C1>,path=
0000037324AD0EE9 <String[13]: E:.autolink)
3: join [path.js:~217] [pc=00000315BCAA4034](this=0000037324A44271 <an Object with map 0000024202D0B1C1)
4: arguments adaptor frame: 2->0
5: getDevPackagesFromPath(aka getDevPackagesFromPath) [C:\Users\pgreen\AppDat...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
I have a folder for all my private npm packages. Inside this folder there is a simple package.json and different folders for each package. These folders are at the same level as the package.json file, so not in another folder prepended with an @ (like npm does with its private packages).
I have created an .autolink file in the root of my project to symlink to this specific folder. When I run npm-autolink link
everything works fine. However when I run npm-autolink remove
, all the symlinks remain as they were created by link.
I can fix it by appending /@username (assuming my private npm name is username) behind the nodeModulesPath variable in the listLinks() function. This is of course not a solution but I hope it helps to solve the bug.
From what I gathered, autolink.json has no effect on the commands. They instead look inside each package.json and link packages listed in dependencies. This is cumbersome because listing local packages inside dependencies makes it impossible to install/uninstall npm packages.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.