Last active
July 3, 2017 02:21
-
-
Save mtibben/58f1529a224853a0d8f26abefefc7530 to your computer and use it in GitHub Desktop.
NPM with docker NFS volume testcase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/bin/node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli '--save', | |
1 verbose cli 'mkdirp' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose npm-session c1a2de0a777de9e3 | |
5 silly install loadCurrentTree | |
6 silly install readLocalPackageData | |
7 http fetch GET 200 https://registry.npmjs.org/mkdirp 24ms (from cache) | |
8 silly pacote tag manifest for mkdirp@latest fetched in 50ms | |
9 silly install loadIdealTree | |
10 silly install cloneCurrentTreeToIdealTree | |
11 silly install loadShrinkwrap | |
12 silly install loadAllDepsIntoIdealTree | |
13 silly resolveWithNewModule [email protected] checking installable status | |
14 http fetch GET 200 https://registry.npmjs.org/minimist 17ms (from cache) | |
15 silly pacote version manifest for [email protected] fetched in 21ms | |
16 silly resolveWithNewModule [email protected] checking installable status | |
17 silly currentTree src | |
18 silly idealTree src | |
18 silly idealTree +-- [email protected] | |
18 silly idealTree `-- [email protected] | |
19 silly install generateActionsToTake | |
20 silly diffTrees action count 2 | |
21 silly diffTrees add [email protected] | |
22 silly diffTrees add [email protected] | |
23 silly decomposeActions action count 16 | |
24 silly decomposeActions fetch [email protected] | |
25 silly decomposeActions extract [email protected] | |
26 silly decomposeActions preinstall [email protected] | |
27 silly decomposeActions build [email protected] | |
28 silly decomposeActions install [email protected] | |
29 silly decomposeActions postinstall [email protected] | |
30 silly decomposeActions finalize [email protected] | |
31 silly decomposeActions refresh-package-json [email protected] | |
32 silly decomposeActions fetch [email protected] | |
33 silly decomposeActions extract [email protected] | |
34 silly decomposeActions preinstall [email protected] | |
35 silly decomposeActions build [email protected] | |
36 silly decomposeActions install [email protected] | |
37 silly decomposeActions postinstall [email protected] | |
38 silly decomposeActions finalize [email protected] | |
39 silly decomposeActions refresh-package-json [email protected] | |
40 silly install executeActions | |
41 silly doSerial global-install 16 | |
42 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing | |
43 verbose lock using /root/.npm/_locks/staging-d74a14ca1b95da85.lock for /usr/local/src/node_modules/.staging | |
44 silly doParallel extract 16 | |
45 silly extract [email protected] | |
46 silly pacote trying minimist@https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz by hash: sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= | |
47 silly extract [email protected] | |
48 silly pacote trying mkdirp@https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz by hash: sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= | |
49 verbose stack TypeError: Cannot read property 'write' of null | |
49 verbose stack at Zlib.callback (zlib.js:469:32) | |
50 verbose cwd /usr/local/src | |
51 verbose Linux 4.4.74-boot2docker | |
52 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "mkdirp" | |
53 verbose node v8.1.2 | |
54 verbose npm v5.0.3 | |
55 error Cannot read property 'write' of null | |
56 verbose exit [ 1, true ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euxo pipefail | |
MACHINE=npm-nfs-test-case | |
# install binaries | |
brew install docker docker-machine docker-machine-nfs caskroom/cask/virtualbox caskroom/cask/virtualbox-extension-pack | |
# start docker with nfs | |
docker-machine create $MACHINE || docker-machine start $MACHINE | |
docker-machine-nfs $MACHINE | |
eval $(docker-machine env $MACHINE) | |
# run npm under docker/nfs | |
docker run -it --volume $(pwd):/usr/local/src --workdir /usr/local/src node:8 \ | |
npm install --save mkdirp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment