Installation trouble
Hi, I tried installing pubsweet core, but I couldn't make it. Just to clarify, I installed npm@2 beforehand and tried this on ArchLinux, Ubuntu and OSX.
After cloning the repo and running npm install
, I ran npm run dev
as the instructions said. This is the output on Linux.
> backend-node@0.0.0 dev /home/barlas/Downloads/code/pubsweet/core
> npm run buildDev && NODE_ENV=dev LOADER=hot node bin/www
> backend-node@0.0.0 buildDev /home/barlas/Downloads/code/pubsweet/core
> webpack --no-info --colors --config ./webpack/webpack.dev.config.js
Hash: 6ad6311d2792e707ff4b
Version: webpack 1.12.12
Child browser:
Hash: 6ad6311d2792e707ff4b
Version: webpack 1.12.12
Time: 23476ms
[0] multi app 52 bytes {0} [built]
+ 1211 hidden modules
ERROR in ../~/css-loader!../~/sass-loader!../~/pubsweet-substance-components/~/lens/styles/lens-writer.scss
Module build failed:
@import './packages/citations/citation.scss';
^
File to import not found or unreadable: ./packages/citations/citation.scss
Parent style sheet: /home/barlas/Downloads/code/pubsweet/core/node_modules/pubsweet-substance-components/node_modules/lens/styles/_lens.scss
in /home/barlas/Downloads/code/pubsweet/core/node_modules/pubsweet-substance-components/node_modules/lens/styles/_lens.scss (line 16, column 1)
@ ../~/pubsweet-substance-components/~/lens/styles/lens-writer.scss 4:14-114 13:2-17:4 14:20-120
ERROR in ../~/css-loader!../~/sass-loader!../~/pubsweet-substance-components/~/lens/styles/lens-reader.scss
Module build failed:
@import './packages/citations/citation.scss';
^
File to import not found or unreadable: ./packages/citations/citation.scss
Parent style sheet: /home/barlas/Downloads/code/pubsweet/core/node_modules/pubsweet-substance-components/node_modules/lens/styles/_lens.scss
in /home/barlas/Downloads/code/pubsweet/core/node_modules/pubsweet-substance-components/node_modules/lens/styles/_lens.scss (line 16, column 1)
@ ../~/pubsweet-substance-components/~/lens/styles/lens-reader.scss 4:14-114 13:2-17:4 14:20-120
ScienceBlogger listening on port 3000
Bundling project, please wait...
Child browser:
ERROR in ./~/css-loader!./~/sass-loader!./~/pubsweet-substance-components/~/lens/styles/lens-reader.scss
Module build failed:
@import './packages/citations/citation.scss';
^
File to import not found or unreadable: ./packages/citations/citation.scss
Parent style sheet: /home/barlas/Downloads/code/pubsweet/core/node_modules/pubsweet-substance-components/node_modules/lens/styles/_lens.scss
in /home/barlas/Downloads/code/pubsweet/core/node_modules/pubsweet-substance-components/node_modules/lens/styles/_lens.scss (line 16, column 1)
@ ./~/pubsweet-substance-components/~/lens/styles/lens-reader.scss 4:14-114 13:2-17:4 14:20-120
ERROR in ./~/css-loader!./~/sass-loader!./~/pubsweet-substance-components/~/lens/styles/lens-writer.scss
Module build failed:
@import './packages/citations/citation.scss';
^
File to import not found or unreadable: ./packages/citations/citation.scss
Parent style sheet: /home/barlas/Downloads/code/pubsweet/core/node_modules/pubsweet-substance-components/node_modules/lens/styles/_lens.scss
in /home/barlas/Downloads/code/pubsweet/core/node_modules/pubsweet-substance-components/node_modules/lens/styles/_lens.scss (line 16, column 1)
@ ./~/pubsweet-substance-components/~/lens/styles/lens-writer.scss 4:14-114 13:2-17:4 14:20-120
webpack: bundle is now VALID.
I ran ./bin/init.sh
and it printed the following json object.
{"ok":true,"id":"2016-02-04T21:47:26.112Z","rev":"1-353c210936b3bd3fe12d241a89b171ab"}
Both localhost:3000/admin/manager
and localhost:3000
showed nothing and printed Uncaught SyntaxError: Unexpected token < app.js:1
.
Interestingly, the output of npm run dev
on OSX was similar, but not the same. The shell script failed instead of printing the aforementioned json. Here is the output on a Mac, in case it helps.
> backend-node@0.0.0 dev /Users/johnbarlas39/Desktop/pubsweet/core
> npm run buildDev && NODE_ENV=dev LOADER=hot node bin/www
> backend-node@0.0.0 buildDev /Users/johnbarlas39/Desktop/pubsweet/core
> webpack --no-info --colors --config ./webpack/webpack.dev.config.js
Hash: 0174be79c82165a6788e
Version: webpack 1.12.12
Child browser:
Hash: 0174be79c82165a6788e
Version: webpack 1.12.12
Time: 28119ms
[0] multi app 52 bytes {0} [built]
+ 1153 hidden modules
ERROR in ../~/pubsweet-substance-components/Writer.jsx
Module not found: Error: Cannot resolve 'file' or 'directory' ./node_modules/lens/styles/lens-writer.scss in /Users/johnbarlas39/Desktop/pubsweet/core/node_modules/pubsweet-substance-components
@ ../~/pubsweet-substance-components/Writer.jsx 29:0-54
ERROR in ../~/pubsweet-substance-components/Reader.jsx
Module not found: Error: Cannot resolve 'file' or 'directory' ./node_modules/lens/styles/lens-reader.scss in /Users/johnbarlas39/Desktop/pubsweet/core/node_modules/pubsweet-substance-components
@ ../~/pubsweet-substance-components/Reader.jsx 29:0-54
ScienceBlogger listening on port 3000
Bundling project, please wait...
Child browser:
ERROR in ./~/pubsweet-substance-components/Writer.jsx
Module not found: Error: Cannot resolve 'file' or 'directory' ./node_modules/lens/styles/lens-writer.scss in /Users/johnbarlas39/Desktop/pubsweet/core/node_modules/pubsweet-substance-components
@ ./~/pubsweet-substance-components/Writer.jsx 29:0-54
ERROR in ./~/pubsweet-substance-components/Reader.jsx
Module not found: Error: Cannot resolve 'file' or 'directory' ./node_modules/lens/styles/lens-reader.scss in /Users/johnbarlas39/Desktop/pubsweet/core/node_modules/pubsweet-substance-components
@ ./~/pubsweet-substance-components/Reader.jsx 29:0-54
webpack: bundle is now VALID.