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

npm install failed #208

Closed
fontani opened this Issue Apr 25, 2016 · 14 comments

Comments

Projects
None yet
3 participants
@fontani
Copy link

fontani commented Apr 25, 2016

Hi all. Was trying to install this in my pc (windows 7 64). and the npm start is failing. checked npm version: 2.14.4, node is 4.1.1. cleaned cache and tried several times without luck, here is the log I got, I am a designer so not much of a clue here, let me know if I am missing something thanks

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 'start' ]
2 info using npm@2.14.4
3 info using node@v4.1.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart design-system@1.0.2
6 info start design-system@1.0.2
7 verbose unsafe-perm in lifecycle true
8 info design-system@1.0.2 Failed to exec start script
9 verbose stack Error: design-system@1.0.2 start: npm run gulp
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:817:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid design-system@1.0.2
11 verbose cwd C:\Users\maq 2\OneDrive- TWG\UXUI\designmaster
12 error Windows_NT 6.1.7601
13 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
14 error node v4.1.1
15 error npm v2.14.4
16 error code ELIFECYCLE
17 error design-system@1.0.2 start: npm run gulp
17 error Exit status 1
18 error Failed at the design-system@1.0.2 start script 'npm run gulp'.
18 error This is most likely a problem with the design-system package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error npm run gulp
18 error You can get their info via:
18 error npm owner ls design-system
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

@kaelig

This comment has been minimized.

Copy link
Contributor

kaelig commented Apr 27, 2016

Thank you @fontani for reporting this. It looks like it might be a Windows/npm related issue. I suggest that you try running the command gulp directly instead of using the npm task runner, and then let us know if that worked for you. Thanks again!

@fontani

This comment has been minimized.

Copy link
Author

fontani commented Apr 27, 2016

thanks @kaelig did what you suggested: run gulp without hte npm and got an error when generating ui, check below, what do you think?

C:\Users\maq 2\OneDrive- TWG\UXUI\designmaster>gulp
[08:50:11] Using gulpfile ~\OneDrive- TWG\UXUI\designmaster\gulpfile.js
[08:50:11] Starting 'default'...
[08:50:11] Starting 'clean'...
[08:50:46] Finished 'clean' after 34 s
[08:50:46] Starting 'styles'...
[08:50:49] Finished 'styles' after 3.29 s
[08:50:49] Starting 'assets:icons'...
[08:50:49] Starting 'assets:icons:zip'...
[08:50:49] Starting 'generate:icons'...
[08:50:49] Starting 'generate:release-notes'...
[08:50:49] Starting 'generate:tokens:zip:ios'...
[08:50:49] Starting 'generate:tokens:zip:android'...
[08:50:49] Starting 'generate:tokens:zip:styl'...
[08:50:49] Starting 'generate:tokens:zip:less'...
[08:50:49] Starting 'generate:tokens:zip:scss'...
[08:50:49] Starting 'generate:tokens'...
[08:50:49] Starting 'generate:ui'...
[08:50:49] 'generate:ui' errored after 25 ms
[08:50:49] Error: ENOENT: no such file or directory, open 'C:\components\activit
y-timeline\flavors\base\config.yml'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Object.getConfig (index.js:37:37)
at Array.map (native)
at Object.getFlavors (index.js:69:10)
at index.js:60:27
at Array.map (native)
at Object.getComponents (index.js:53:10)
at index.js:30:30
at Array.map (native)
at Object.generate (index.js:25:10)
at generateUI (generate-ui.js:45:53)
at Gulp. (generate-ui.js:53:29)
at module.exports (C:\Users\maq 2\OneDrive- TWG\UXUI\designmaster\node_modul
es\gulp\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (C:\Users\maq 2\OneDrive- TWG\UXUI\designmaste
r\node_modules\gulp\node_modules\orchestrator\index.js:273:3)
[08:50:49] 'default' errored after 38 s
[08:50:49] Error in plugin 'run-sequence'
Message:
An error occured in task 'generate:ui'.
[08:50:50] Finished 'generate:release-notes' after 767 ms
[08:50:50] Finished 'assets:icons:zip' after 784 ms
[08:50:50] Finished 'generate:tokens' after 848 ms
[08:50:50] Finished 'generate:tokens:zip:android' after 961 ms
[08:50:50] Finished 'generate:tokens:zip:ios' after 965 ms
[08:50:50] Finished 'generate:tokens:zip:less' after 960 ms
[08:50:50] Finished 'generate:tokens:zip:styl' after 964 ms
[08:50:50] Finished 'generate:tokens:zip:scss' after 1.08 s
[08:50:51] Finished 'generate:icons' after 1.58 s
[08:50:52] Finished 'assets:icons' after 3.42 s

@kaelig

This comment has been minimized.

Copy link
Contributor

kaelig commented Apr 27, 2016

Thank you for the report. There was an issue in 1.0.2, sorry for the inconvenience. Could you please try with the new version 1.0.3 and let us know how it goes?

@fontani

This comment has been minimized.

Copy link
Author

fontani commented Apr 27, 2016

no luck yet. I tried 1.0.3 and it went like this: npm start gave me the same error than the first time. so I did the gulp thing without the npm and got this error:

C:\Users\maq 2\OneDrive- TWG\UXUI\designmaster>gulp
[08:50:11] Using gulpfile ~\OneDrive- TWG\UXUI\designmaster\gulpfile.js
[08:50:11] Starting 'default'...
[08:50:11] Starting 'clean'...
[08:50:46] Finished 'clean' after 34 s
[08:50:46] Starting 'styles'...
[08:50:49] Finished 'styles' after 3.29 s
[08:50:49] Starting 'assets:icons'...
[08:50:49] Starting 'assets:icons:zip'...
[08:50:49] Starting 'generate:icons'...
[08:50:49] Starting 'generate:release-notes'...
[08:50:49] Starting 'generate:tokens:zip:ios'...
[08:50:49] Starting 'generate:tokens:zip:android'...
[08:50:49] Starting 'generate:tokens:zip:styl'...
[08:50:49] Starting 'generate:tokens:zip:less'...
[08:50:49] Starting 'generate:tokens:zip:scss'...
[08:50:49] Starting 'generate:tokens'...
[08:50:49] Starting 'generate:ui'...
[08:50:49] 'generate:ui' errored after 25 ms
[08:50:49] Error: ENOENT: no such file or directory, open 'C:\components\activit
y-timeline\flavors\base\config.yml'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Object.getConfig (index.js:37:37)
at Array.map (native)
at Object.getFlavors (index.js:69:10)
at index.js:60:27
at Array.map (native)
at Object.getComponents (index.js:53:10)
at index.js:30:30
at Array.map (native)
at Object.generate (index.js:25:10)
at generateUI (generate-ui.js:45:53)
at Gulp. (generate-ui.js:53:29)
at module.exports (C:\Users\maq 2\OneDrive- TWG\UXUI\designmaster\node_modul
es\gulp\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (C:\Users\maq 2\OneDrive- TWG\UXUI\designmaste
r\node_modules\gulp\node_modules\orchestrator\index.js:273:3)
[08:50:49] 'default' errored after 38 s
[08:50:49] Error in plugin 'run-sequence'
Message:
An error occured in task 'generate:ui'.
[08:50:50] Finished 'generate:release-notes' after 767 ms
[08:50:50] Finished 'assets:icons:zip' after 784 ms
[08:50:50] Finished 'generate:tokens' after 848 ms
[08:50:50] Finished 'generate:tokens:zip:android' after 961 ms
[08:50:50] Finished 'generate:tokens:zip:ios' after 965 ms
[08:50:50] Finished 'generate:tokens:zip:less' after 960 ms
[08:50:50] Finished 'generate:tokens:zip:styl' after 964 ms
[08:50:50] Finished 'generate:tokens:zip:scss' after 1.08 s
[08:50:51] Finished 'generate:icons' after 1.58 s
[08:50:52] Finished 'assets:icons' after 3.42 s

then I just wanted to check if this is a blocker when serving the slds. so I did gulp serve

and got the localhost url but the page says "cannot GET"

and the error in the console is this:

C:\Users\maq 2\OneDrive- TWG\UXUI\designmaster>gulp
[08:50:11] Using gulpfile ~\OneDrive- TWG\UXUI\designmaster\gulpfile.js
[08:50:11] Starting 'default'...
[08:50:11] Starting 'clean'...
[08:50:46] Finished 'clean' after 34 s
[08:50:46] Starting 'styles'...
[08:50:49] Finished 'styles' after 3.29 s
[08:50:49] Starting 'assets:icons'...
[08:50:49] Starting 'assets:icons:zip'...
[08:50:49] Starting 'generate:icons'...
[08:50:49] Starting 'generate:release-notes'...
[08:50:49] Starting 'generate:tokens:zip:ios'...
[08:50:49] Starting 'generate:tokens:zip:android'...
[08:50:49] Starting 'generate:tokens:zip:styl'...
[08:50:49] Starting 'generate:tokens:zip:less'...
[08:50:49] Starting 'generate:tokens:zip:scss'...
[08:50:49] Starting 'generate:tokens'...
[08:50:49] Starting 'generate:ui'...
[08:50:49] 'generate:ui' errored after 25 ms
[08:50:49] Error: ENOENT: no such file or directory, open 'C:\components\activit
y-timeline\flavors\base\config.yml'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Object.getConfig (index.js:37:37)
at Array.map (native)
at Object.getFlavors (index.js:69:10)
at index.js:60:27
at Array.map (native)
at Object.getComponents (index.js:53:10)
at index.js:30:30
at Array.map (native)
at Object.generate (index.js:25:10)
at generateUI (generate-ui.js:45:53)
at Gulp. (generate-ui.js:53:29)
at module.exports (C:\Users\maq 2\OneDrive- TWG\UXUI\designmaster\node_modul
es\gulp\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (C:\Users\maq 2\OneDrive- TWG\UXUI\designmaste
r\node_modules\gulp\node_modules\orchestrator\index.js:273:3)
[08:50:49] 'default' errored after 38 s
[08:50:49] Error in plugin 'run-sequence'
Message:
An error occured in task 'generate:ui'.
[08:50:50] Finished 'generate:release-notes' after 767 ms
[08:50:50] Finished 'assets:icons:zip' after 784 ms
[08:50:50] Finished 'generate:tokens' after 848 ms
[08:50:50] Finished 'generate:tokens:zip:android' after 961 ms
[08:50:50] Finished 'generate:tokens:zip:ios' after 965 ms
[08:50:50] Finished 'generate:tokens:zip:less' after 960 ms
[08:50:50] Finished 'generate:tokens:zip:styl' after 964 ms
[08:50:50] Finished 'generate:tokens:zip:scss' after 1.08 s
[08:50:51] Finished 'generate:icons' after 1.58 s
[08:50:52] Finished 'assets:icons' after 3.42 s

thanks for looking into this, let me know if there is anything I could do

@kaelig

This comment has been minimized.

Copy link
Contributor

kaelig commented Apr 27, 2016

Thank you for trying! I'll look further into it.

@kaelig kaelig added the bug label Apr 27, 2016

@kaelig

This comment has been minimized.

Copy link
Contributor

kaelig commented Apr 27, 2016

I was able to reproduce the issue in a Windows VM.

@aputinski looks like the getFlavors function tries to fetch the config files at the root (C:\components\activit y-timeline\flavors\base\config.yml) instead of a relative path. Can you have a look?

@aputinski

This comment has been minimized.

Copy link
Contributor

aputinski commented Apr 28, 2016

Thanks for finding the problem! Shouldn't be too hard to fix.

@fontani

This comment has been minimized.

Copy link
Author

fontani commented May 3, 2016

is there any update on this one? let me know please thank you

@aputinski

This comment has been minimized.

Copy link
Contributor

aputinski commented May 4, 2016

@fontani I apologize for the delay. I will try to get to this as soon as possible.

@fontani

This comment has been minimized.

Copy link
Author

fontani commented May 17, 2016

Hi @aputinski is there anything I can do to help? let me know :D

@kaelig

This comment has been minimized.

Copy link
Contributor

kaelig commented May 17, 2016

Thanks for following up and for your patience, @fontani! @aputinski has fixed it in our internal branch. We will release a public patch very soon. Watch this space!

@fontani

This comment has been minimized.

Copy link
Author

fontani commented May 17, 2016

excelent!

2016-05-17 13:59 GMT-03:00 Kaelig notifications@github.com:

Thanks for following up and for your patience, @fontani
https://github.com/fontani! @aputinski https://github.com/aputinski
has fixed it in our internal branch. We will release a public patch very
soon. Watch this space!


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#208 (comment)

@kaelig kaelig closed this in 160aedd May 18, 2016

kaelig added a commit that referenced this issue May 18, 2016

kaelig pushed a commit that referenced this issue May 18, 2016

Merge branch 'spring-16' into feature/improve-js-dev-experience
* spring-16:
  Use full SHA
  Publish
  Travis updates
  Remove unnecessary and mis-spelt ariaL-label attribute from icon and token search inputs
  Remove comment
  Fix Windows compatibility. Fixes #208.
  Remove the background on active footer links (#905)
  Add title to icon for a11y
  Make sure state and flavor IDs are unique
  Fix typos and whitespace
  Add some boilerplate to the examples
  Trim at the right moment
  Fix documentation indentation
  Trim code blocks
  Add link to 1.0.3
  Add unmanaged package for 1.0.3
  Update RELEASENOTES.md
@kaelig

This comment has been minimized.

Copy link
Contributor

kaelig commented May 18, 2016

@fontani thanks again for your patience. This should now be fixed in the new 1.0.4. Let us know how this goes for you!

aputinski pushed a commit that referenced this issue Jun 7, 2016

Merge branch 'summer-16' into button-group-examp
* summer-16:
  Remove comment
  Fix Windows compatibility. Fixes #208.
  Remove the background on active footer links (#905)
  Add title to icon for a11y
  fixed url paths within documentation
  moved grid and media object to utilities
  Make sure state and flavor IDs are unique
  Add metadata to package.json
  Fix typos and whitespace
  Add some boilerplate to the examples
  Trim at the right moment
  Fix documentation indentation
  Trim code blocks
  Add link to 1.0.3
  Add unmanaged package for 1.0.3
  Update RELEASENOTES.md

ishakasliwal pushed a commit that referenced this issue Sep 7, 2016

Merge branch 'winter-17' into feature/feeds-v2
* winter-17: (28 commits)
  Quiet the hound
  Vertical record home updates
  Syntax fixes
  Fix media object path
  Remove immutables
  Move grid class to utiities
  Add linting comment
  Make zero spacing helpers immutable
  Add record home vertical
  Add additional vertical spacing on list helper
  Add grid helper helper for flex-start
  Fix path to media objects module
  Remove comment
  Initial commit
  Fix Windows compatibility. Fixes #208.
  Remove the background on active footer links (#905)
  Add title to icon for a11y
  fixed url paths within documentation
  moved grid and media object to utilities
  Make sure state and flavor IDs are unique
  ...
@fontani

This comment has been minimized.

Copy link
Author

fontani commented Mar 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.