Skip to content

Instantly share code, notes, and snippets.

@gt3
Last active February 5, 2017 18:42
Show Gist options
  • Save gt3/f70cfe566838f9ab1245ab813946d31d to your computer and use it in GitHub Desktop.
Save gt3/f70cfe566838f9ab1245ab813946d31d to your computer and use it in GitHub Desktop.
js-csp errors on windows
C:\Users\Ankit\Documents\code\js-csp>npm run build
> js-csp@0.9.0 build C:\Users\Ankit\Documents\code\js-csp
> npm run build:node && npm run build:es && npm run build:browser
> js-csp@0.9.0 build:node C:\Users\Ankit\Documents\code\js-csp
> node -e "require('ncp').ncp('./src', './lib')" && cross-env BABEL_ENV=production npm run babel:node
> js-csp@0.9.0 babel:node C:\Users\Ankit\Documents\code\js-csp
> babel -d lib src
src\csp.core.js -> lib\csp.core.js
src\csp.js -> lib\csp.js
src\csp.operations.js -> lib\csp.operations.js
src\csp.test-helpers.js -> lib\csp.test-helpers.js
src\impl\boxes.js -> lib\impl\boxes.js
src\impl\buffers.js -> lib\impl\buffers.js
src\impl\channels.js -> lib\impl\channels.js
src\impl\dispatch.js -> lib\impl\dispatch.js
src\impl\handlers.js -> lib\impl\handlers.js
src\impl\instruction.js -> lib\impl\instruction.js
src\impl\process.js -> lib\impl\process.js
src\impl\results.js -> lib\impl\results.js
src\impl\select.js -> lib\impl\select.js
src\impl\timers.js -> lib\impl\timers.js
src\impl\utils.js -> lib\impl\utils.js
> js-csp@0.9.0 build:es C:\Users\Ankit\Documents\code\js-csp
> node -e "require('ncp').ncp('./src', './es')" && cross-env ES_PRESETS=true BABEL_ENV=production npm run babel:es
> js-csp@0.9.0 babel:es C:\Users\Ankit\Documents\code\js-csp
> babel -d es src
src\csp.core.js -> es\csp.core.js
src\csp.js -> es\csp.js
src\csp.operations.js -> es\csp.operations.js
src\csp.test-helpers.js -> es\csp.test-helpers.js
src\impl\boxes.js -> es\impl\boxes.js
src\impl\buffers.js -> es\impl\buffers.js
src\impl\channels.js -> es\impl\channels.js
src\impl\dispatch.js -> es\impl\dispatch.js
src\impl\handlers.js -> es\impl\handlers.js
src\impl\instruction.js -> es\impl\instruction.js
src\impl\process.js -> es\impl\process.js
src\impl\results.js -> es\impl\results.js
src\impl\select.js -> es\impl\select.js
src\impl\timers.js -> es\impl\timers.js
src\impl\utils.js -> es\impl\utils.js
> js-csp@0.9.0 build:browser C:\Users\Ankit\Documents\code\js-csp
> webpack --config webpack.config.js
Hash: e6a4b7e13fbc7822890b
Version: webpack 2.2.1
Time: 3076ms
Asset Size Chunks Chunk Names
csp.min.js 66.4 kB 0 [emitted] csp
[2] ./src/impl/channels.js 8.83 kB {0} [built]
[6] ./src/impl/boxes.js 638 bytes {0} [built]
[14] ./src/impl/buffers.js 7.12 kB {0} [built]
[24] ./src/impl/process.js 3.93 kB {0} [built]
[40] ./src/csp.core.js 1.49 kB {0} [built]
[41] ./src/impl/results.js 687 bytes {0} [built]
[43] ./~/babel-runtime/core-js/set-immediate.js 94 bytes {0} [built]
[44] ./~/babel-runtime/helpers/toConsumableArray.js 466 bytes {0} [built]
[68] ./src/csp.operations.js 38.8 kB {0} [built]
[69] ./src/impl/timers.js 342 bytes {0} [built]
[70] ./src/impl/instruction.js 1.22 kB {0} [built]
[71] ./src/impl/select.js 1.92 kB {0} [built]
[72] ./src/impl/utils.js 573 bytes {0} [built]
[79] ./~/babel-runtime/regenerator/index.js 49 bytes {0} [built]
[187] ./src/csp.js 3.48 kB {0} [built]
+ 173 hidden modules
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'test:coverage' ]
2 info using npm@3.10.3
3 info using node@v6.4.0
4 verbose run-script [ 'pretest:coverage', 'test:coverage', 'posttest:coverage' ]
5 info lifecycle js-csp@0.8.1~pretest:coverage: js-csp@0.8.1
6 silly lifecycle js-csp@0.8.1~pretest:coverage: no script for pretest:coverage, continuing
7 info lifecycle js-csp@0.8.1~test:coverage: js-csp@0.8.1
8 verbose lifecycle js-csp@0.8.1~test:coverage: unsafe-perm in lifecycle true
9 verbose lifecycle js-csp@0.8.1~test:coverage: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Ankit\Documents\code\js-csp\node_modules\.bin;C:\Program Files\nodejs;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\ProgramData\Lenovo\ReadyApps;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files\cURL\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\MongoDB\Server\3.0\bin;C:\Program Files\nodejs\;C:\Program Files\dotnet\;C:\Ruby200-x64\bin;C:\Users\Ankit\AppData\Roaming\npm;C:\Program Files (x86)\Microsoft VS Code\bin
10 verbose lifecycle js-csp@0.8.1~test:coverage: CWD: C:\Users\Ankit\Documents\code\js-csp
11 silly lifecycle js-csp@0.8.1~test:coverage: Args: [ '/d /s /c', 'istanbul cover ./node_modules/.bin/_mocha' ]
12 silly lifecycle js-csp@0.8.1~test:coverage: Returned: code: 1 signal: null
13 info lifecycle js-csp@0.8.1~test:coverage: Failed to exec test:coverage script
14 verbose stack Error: js-csp@0.8.1 test:coverage: `istanbul cover ./node_modules/.bin/_mocha`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:242:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:852:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid js-csp@0.8.1
16 verbose cwd C:\Users\Ankit\Documents\code\js-csp
17 error Windows_NT 6.3.9600
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test:coverage"
19 error node v6.4.0
20 error npm v3.10.3
21 error code ELIFECYCLE
22 error js-csp@0.8.1 test:coverage: `istanbul cover ./node_modules/.bin/_mocha`
22 error Exit status 1
23 error Failed at the js-csp@0.8.1 test:coverage script 'istanbul cover ./node_modules/.bin/_mocha'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the js-csp package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error istanbul cover ./node_modules/.bin/_mocha
23 error You can get information on how to open an issue for this project with:
23 error npm bugs js-csp
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls js-csp
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
C:\Users\Ankit\Documents\code\js-csp>npm install
> js-csp@0.9.0 prepublish C:\Users\Ankit\Documents\code\js-csp
> npm run build
> js-csp@0.9.0 build C:\Users\Ankit\Documents\code\js-csp
> npm run build:node && npm run build:es && npm run build:browser
> js-csp@0.9.0 build:node C:\Users\Ankit\Documents\code\js-csp
> node -e "require('ncp').ncp('./src', './lib')" && BABEL_ENV=production babel -d lib src
'BABEL_ENV' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build:n
ode"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! js-csp@0.9.0 build:node: `node -e "require('ncp').ncp('./src', './lib')" && BABEL_ENV=production babel -d lib src`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the js-csp@0.9.0 build:node script 'node -e "require('ncp').ncp('./src', './lib')" && BABEL_ENV=production babe
l -d lib src'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the js-csp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node -e "require('ncp').ncp('./src', './lib')" && BABEL_ENV=production babel -d lib src
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs js-csp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls js-csp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Ankit\Documents\code\js-csp\npm-debug.log
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! js-csp@0.9.0 build: `npm run build:node && npm run build:es && npm run build:browser`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the js-csp@0.9.0 build script 'npm run build:node && npm run build:es && npm run build:browser'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the js-csp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build:node && npm run build:es && npm run build:browser
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs js-csp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls js-csp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Ankit\Documents\code\js-csp\npm-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (curre
nt: {"os":"win32","arch":"x64"})
npm WARN js-csp@0.9.0 license should be a valid SPDX license expression
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! js-csp@0.9.0 prepublish: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the js-csp@0.9.0 prepublish script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the js-csp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs js-csp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls js-csp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Ankit\Documents\code\js-csp\npm-debug.log
C:\Users\Ankit\Documents\code\js-csp>npm run build
> js-csp@0.9.0 build C:\Users\Ankit\Documents\code\js-csp
> npm run build:node && npm run build:es && npm run build:browser
> js-csp@0.9.0 build:node C:\Users\Ankit\Documents\code\js-csp
> node -e "require('ncp').ncp('./src', './lib')" && BABEL_ENV=production babel -d lib src
'BABEL_ENV' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build:
ode"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! js-csp@0.9.0 build:node: `node -e "require('ncp').ncp('./src', './lib')" && BABEL_ENV=production babel -d lib src`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the js-csp@0.9.0 build:node script 'node -e "require('ncp').ncp('./src', './lib')" && BABEL_ENV=production bab
l -d lib src'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the js-csp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node -e "require('ncp').ncp('./src', './lib')" && BABEL_ENV=production babel -d lib src
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs js-csp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls js-csp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Ankit\Documents\code\js-csp\npm-debug.log
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! js-csp@0.9.0 build: `npm run build:node && npm run build:es && npm run build:browser`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the js-csp@0.9.0 build script 'npm run build:node && npm run build:es && npm run build:browser'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the js-csp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build:node && npm run build:es && npm run build:browser
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs js-csp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls js-csp
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Ankit\Documents\code\js-csp\npm-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment