RyTaus / sleek

Application for creating javascript code in a visual and intuitive manner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`npm start` script crashes when reading filepath on OSX

azinge opened this issue · comments

Issue:
Running npm start on OSX produces the error -

Error: Cannot find module '/Users/{...}/visualjs/.srcdrawer.js' from '/Users/{...}/visualjs'

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! visualjs@0.0.1 build: `browserifyinc .\src\drawer.js -o .\src\static\bundle.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the visualjs@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/fastmanex/.npm/_logs/2018-02-09T17_21_02_943Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! visualjs@0.0.1 start: `npm run-script build && npm run-script run`

npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the visualjs@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Potential Cause:
I believe this error is due to the backslash path separators not acting similarly on macOSX. The problem was resolved on my machine by simply changing the backslashes to forward slashes, although I'm not sure whether or not that will impact the execution of the code on windows.

Changed to forward slashes. Thanks.