Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

npm ERR! ./scripts/web when try to start #24

Open
WaitsApp opened this issue Feb 15, 2017 · 8 comments
Open

npm ERR! ./scripts/web when try to start #24

WaitsApp opened this issue Feb 15, 2017 · 8 comments

Comments

@WaitsApp
Copy link

WaitsApp commented Feb 15, 2017

Hi Team,

I am facing below error when execute npm start command. Please help to resolve this error. i am using window 7 - 64 bit OS environment for development.

npm start

[email protected] start ..\AkritiveProject\pdf-annotate.js

./scripts/web

'.' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "..Program Files\nodejs\node.exe" "..\AppDa
ta\Roaming\npm\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.9.2
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: ./scripts/web
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script './scripts/web'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pdf-annotate.js packa
ge,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./scripts/web
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pdf-annotate.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pdf-annotate.js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request

@geocine
Copy link

geocine commented Feb 16, 2017

same error I am also trying to make this work on Windows

@geocine
Copy link

geocine commented Feb 16, 2017

Here is how to make it work on windows:

  1. install webpack-dev-server
npm install -g webpack-dev-server
  1. update package.json
    "start": ".\\scripts\\web.bat",
  1. go to scripts folder and create a web.bat file. these are the contents:
xcopy .\shared .\docs\shared /s /e /h /f /y
webpack-dev-server --inline --config .\webpack.web.js --content-base docs\
  1. execute npm start and navigate to localhost:8080

@ajile-in
Copy link

Thanks @geocine . This worked for me on a Windows PC.

@Gaurabp
Copy link

Gaurabp commented Mar 22, 2017

it is also work for me but pdf page is not open

@manishjn
Copy link

manishjn commented May 22, 2017

Add additional "" for Windows 7 in ahead of folder path in web.bat. HTML parser removes that while posting path

@AP-Nothize
Copy link

fixed scripts/web in #57

@SaddamDeveloper
Copy link

thanks, it worked form me.

@SaddamDeveloper
Copy link

how to use this layer in pdf.js??

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

No branches or pull requests

7 participants