Skip to content

npm start fails on Windows #3

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

Closed
tomeraz opened this issue Jun 11, 2015 · 3 comments
Closed

npm start fails on Windows #3

tomeraz opened this issue Jun 11, 2015 · 3 comments

Comments

@tomeraz
Copy link

tomeraz commented Jun 11, 2015

Can you make this work on Windows?
I trying using cmd and github bash.
Output below.
10x!

$ npm start

browserify-demo@1.0.1 start d:\temp\local-css\browserify-demo
npm run build && http-server dist

browserify-demo@1.0.1 build d:\temp\local-css\browserify-demo
npm run clean && npm run copy && npm run browserify

browserify-demo@1.0.1 clean d:\temp\local-css\browserify-demo
rm -rf dist && mkdir dist

browserify-demo@1.0.1 copy d:\temp\local-css\browserify-demo
cp src/index.html dist/index.html

browserify-demo@1.0.1 browserify d:\temp\local-css\browserify-demo
browserify -t css-modulesify -o dist/index.js src/index.js

{ [Error: ENOENT, open 'd:\temp\local-css\browserify-demo\src\components\4-CompositionOverrides\shared\styles\layout.css']
errno: -4058,
code: 'ENOENT',
path: 'd:\temp\local-css\browserify-demo\src\components\4-CompositionOverrides\shared\styles\layout.css' }
{ [Error: ENOENT, open 'd:\temp\local-css\browserify-demo\src\components\4-CompositionOverrides\shared\styles\typography.css']
errno: -4058,
code: 'ENOENT',
path: 'd:\temp\local-css\browserify-demo\src\components\4-CompositionOverrides\shared\styles\typography.css' }
{ [Error: ENOENT, open 'd:\temp\local-css\browserify-demo\src\components\5-ScopedAnimations\shared\styles\animations.css']
errno: -4058,
code: 'ENOENT',
path: 'd:\temp\local-css\browserify-demo\src\components\5-ScopedAnimations\shared\styles\animations.css' }
{ [Error: ENOENT, open 'd:\temp\local-css\browserify-demo\src\components\3-ClassComposition\shared\styles\layout.css']
errno: -4058,
code: 'ENOENT',
path: 'd:\temp\local-css\browserify-demo\src\components\3-ClassComposition\shared\styles\layout.css' }
{ [Error: ENOENT, open 'd:\temp\local-css\browserify-demo\src\components\3-ClassComposition\shared\styles\typography.css']
errno: -4058,
code: 'ENOENT',
path: 'd:\temp\local-css\browserify-demo\src\components\3-ClassComposition\shared\styles\typography.css' }
{ [Error: ENOENT, open 'd:\temp\local-css\browserify-demo\src\components\3-ClassComposition\shared\styles\layout.css']
errno: -4058,
code: 'ENOENT',
path: 'd:\temp\local-css\browserify-demo\src\components\3-ClassComposition\shared\styles\layout.css' }
{ [Error: ENOENT, open 'd:\temp\local-css\browserify-demo\src\components\3-ClassComposition\shared\styles\typography.css']
errno: -4058,
code: 'ENOENT',
path: 'd:\temp\local-css\browserify-demo\src\components\3-ClassComposition\shared\styles\typography.css' }
Starting up http-server, serving dist on: http://0.0.0.0:8080
Hit CTRL-C to stop the server

@joshgillies
Copy link
Member

Hey @tomeraz, could you try running the JSPM demo to see whether you experience similar issues?

@kumorko
Copy link

kumorko commented Jun 30, 2015

also have problem to run it (Windows 7)

$ npm start

browserify-demo@1.0.1 start c:\development\browserify-demo
npm run clean && npm run copy && npm run budo

browserify-demo@1.0.1 clean c:\development\browserify-demo
rm -rf dist && mkdir dist

browserify-demo@1.0.1 copy c:\development\browserify-demo
cp src/index.html dist/index.html && cp src/components/0-Logo/logo.svg dist/lo
go.svg

browserify-demo@1.0.1 budo c:\development\browserify-demo
budo src/index.js:index.js --dir=dist -- -t babelify -t brfs -p [css-modulesif
y -u postcss-modules-local-by-default -u postcss-modules-extract-imports -u post
css-modules-scope -u postcss-color-rebeccapurple -u autoprefixer --autoprefixer.
browsers '> 5%' -o dist/main.css] | opnr | garnish

Unknown browser query '
Unknown browser query '
Unknown browser query '
Unknown browser query '
Unknown browser query '
Unknown browser query '
Unknown browser query '
Unknown browser query '
Unknown browser query '

@toly-k
Copy link

toly-k commented Mar 18, 2016

Windows doesn't like single quote, so it worked after replacing '> 5%' with \"> 5%\" in package.json

EugeneKramer added a commit to EugeneKramer/browserify-demo that referenced this issue Jul 3, 2016
Replaced single quotes ' to double quotes \" in package.json scripts to allow it run on Windows.

css-modules#3
@joshwnj joshwnj closed this as completed in #9 Jul 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants