You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 1.4.6 installed on one machine, and 1.4.8 on another. Can't get the test samples to fire on 1.4.8 version.
Looks like there may be a dependency conflict of some kind. Running in to these errors on attempted install from root of project. From the log file after install attempt:
21892 warn [email protected] No description
21893 warn [email protected] No repository field.
21894 verbose stack Error: ENOENT: no such file or directory, rename '/home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/testmybot-249ec557/node_modules/@babel/code-frame' -> '/home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/@babel/code-frame-96da444a'
21895 verbose cwd /home/<redacted>/repo/testmybot/samples/mocha
21896 verbose Linux 3.10.0-693.2.2.el7.x86_64
21897 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
21898 verbose node v8.7.0
21899 verbose npm v6.4.1
21900 error path /home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/testmybot-249ec557/node_modules/@babel/code-frame
21901 error code ENOENT
21902 error errno -2
21903 error syscall rename
21904 error enoent ENOENT: no such file or directory, rename '/home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/testmybot-249ec557/node_modules/@babel/code-frame' -> '/home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/@babel/code-frame-96da444a'
21905 error enoent This is related to npm not being able to find a file.
21906 verbose exit [ -2, true ]
Then afterward attempting to install from /samples/mocha per your instructions before running tests:
21954 warn [email protected] No description
21955 warn [email protected] No repository field.
21956 verbose stack Error: ENOENT: no such file or directory, rename '/home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/testmybot-249ec557/node_modules/@babel/code-frame' -> '/home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/@babel/code-frame-96da444a'
21957 verbose cwd /home/<redacted>/repo/testmybot/samples/mocha
21958 verbose Linux 3.10.0-693.2.2.el7.x86_64
21959 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
21960 verbose node v8.7.0
21961 verbose npm v6.4.1
21962 error path /home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/testmybot-249ec557/node_modules/@babel/code-frame
21963 error code ENOENT
21964 error errno -2
21965 error syscall rename
21966 error enoent ENOENT: no such file or directory, rename '/home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/testmybot-249ec557/node_modules/@babel/code-frame' -> '/home/<redacted>/repo/testmybot/samples/mocha/node_modules/.staging/@babel/code-frame-96da444a'
21967 error enoent This is related to npm not being able to find a file.
21968 verbose exit [ -2, true ]
Then an attempt at npm run test after both of the install errors:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'test' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'pretest', 'test', 'posttest' ]
5 info lifecycle [email protected]~pretest: [email protected]
6 info lifecycle [email protected]~test: [email protected]
7 verbose lifecycle [email protected]~test: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~test: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/<redacted>/repo/testmybot/samples/mocha/node_modules/.bin:.:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin
9 verbose lifecycle [email protected]~test: CWD: /home/<redacted>/repo/testmybot/samples/mocha
10 silly lifecycle [email protected]~test: Args: [ '-c', 'mocha --reporter spec --exit spec' ]
11 info lifecycle [email protected]~test: Failed to exec test script
12 verbose stack Error: [email protected] test: `mocha --reporter spec --exit spec`
12 verbose stack spawn ENOENT
12 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack at emitTwo (events.js:125:13)
12 verbose stack at ChildProcess.emit (events.js:213:7)
12 verbose stack at maybeClose (internal/child_process.js:927:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
13 verbose pkgid [email protected]
14 verbose cwd /home/<redacted>/repo/testmybot/samples/mocha
15 verbose Linux 3.10.0-693.2.2.el7.x86_64
16 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "test"
17 verbose node v8.7.0
18 verbose npm v6.4.1
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error [email protected] test: `mocha --reporter spec --exit spec`
23 error spawn ENOENT
24 error Failed at the [email protected] test script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered:
In lots of cases it helps to remove the "node_modules" folder and the "package-lock.json" file and let npm download the dependencies again ("npm install").
Howdy. Excited to see this succeed.
I have 1.4.6 installed on one machine, and 1.4.8 on another. Can't get the test samples to fire on 1.4.8 version.
Looks like there may be a dependency conflict of some kind. Running in to these errors on attempted install from root of project. From the log file after install attempt:
Then afterward attempting to install from
/samples/mocha
per your instructions before running tests:Then an attempt at
npm run test
after both of the install errors:The text was updated successfully, but these errors were encountered: