Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Errors from 1.4.6 to 1.4.8 #94

Open
roeintense opened this issue Sep 5, 2018 · 1 comment
Open

Install Errors from 1.4.6 to 1.4.8 #94

roeintense opened this issue Sep 5, 2018 · 1 comment
Labels

Comments

@roeintense
Copy link

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:

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 ]
@codeforequity-at
Copy link
Owner

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").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants