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

Issue if project folder have spaces in the path #39

Closed
mphillipss opened this issue Mar 16, 2016 · 6 comments
Closed

Issue if project folder have spaces in the path #39

mphillipss opened this issue Mar 16, 2016 · 6 comments
Labels

Comments

@mphillipss
Copy link

Attempting to install [email protected] on CentOS Linux release 7.2.1511 (Core)
. I was successful yesterday (don't know how), but am now failing due to [email protected].

Using react 0.14.3 but believe material-ui attempts to upgrade to 0.14.7

Looking for suggestions

npm ERR! Linux 3.10.0-327.10.1.el7.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "install"
npm ERR! node v4.4.0
npm ERR! npm v2.14.20
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: node generator.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node generator.js'.
npm ERR! This is most likely a problem with the caniuse-api package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node generator.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs caniuse-api
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls caniuse-api
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /var/lib/jenkins/jobs/Arches - Development - Front/workspace/node_modules/npm-debug.log

[email protected] postinstall /var/lib/jenkins/jobs/Arches - Development - Front/workspace/node_modules/material-ui/node_modules/inline-style-prefixer/node_modules/caniuse-api
node generator.js

module.js:327
throw err;
^

Error: Cannot find module '/var/lib/jenkins/jobs/Arches'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3
shell.js: internal error
Error: Command failed: "/usr/bin/node" /var/lib/jenkins/jobs/Arches - Development - Front/workspace/node_modules/material-ui/node_modules/inline-style-prefixer/node_modules/caniuse-api/shelljs_61861a524f0a7dc03ee0
at checkExecSyncError (child_process.js:464:13)
at Object.execSync (child_process.js:504:13)
at execSync (/var/lib/jenkins/jobs/Arches - Development - Front/workspace/node_modules/material-ui/node_modules/inline-style-prefixer/node_modules/caniuse-api/node_modules/shelljs/src/exec.js:81:11)
at _exec (/var/lib/jenkins/jobs/Arches - Development - Front/workspace/node_modules/material-ui/node_modules/inline-style-prefixer/node_modules/caniuse-api/node_modules/shelljs/src/exec.js:214:12)
at /var/lib/jenkins/jobs/Arches - Development - Front/workspace/node_modules/material-ui/node_modules/inline-style-prefixer/node_modules/caniuse-api/node_modules/shelljs/src/common.js:182:23
at Object. (/var/lib/jenkins/jobs/Arches - Development - Front/workspace/node_modules/material-ui/node_modules/inline-style-prefixer/node_modules/caniuse-api/generator.js:4:3)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)

@MoOx
Copy link
Collaborator

MoOx commented Mar 16, 2016

According to the error, which is Error: Cannot find module '/var/lib/jenkins/jobs/Arches', not sure it's directly related...

Well, I may have an idea. Do you have a space in your folder '/var/lib/jenkins/jobs/Arches ...* ????' ?

@ghost
Copy link

ghost commented Mar 16, 2016

There is plenty of space in the folder; however, the directory is /var/lib/jenkins/jobs/Arches - Development - Front/and all other npm installations have no issue installing into it; but could the naming convention be an issue?

(Flipped github accounts, I'm the OP)

@mphillipss
Copy link
Author

Removed -and spaces from directory name and had no issue. Please feel free to close this issue.

@MoOx
Copy link
Collaborator

MoOx commented Mar 16, 2016

Not it's a bug of this module. Will fix.

@mphillipss
Copy link
Author

Okay - Happy Fixing!

@MoOx MoOx changed the title npm install [email protected] fails due to [email protected] Issue if project folder have spaces in the path Apr 4, 2016
@MoOx MoOx added the bug label May 11, 2016
@MoOx
Copy link
Collaborator

MoOx commented Sep 5, 2016

Should be closed by #47 since there is no generation step anymore. Feel free to ping here if this problem happen again.

@MoOx MoOx closed this as completed Sep 5, 2016
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