ERROR: Javascript files have not been built.
See original GitHub issueTrying to set up a new ghost blog on a fresh install of Ubuntu 14.04 I get the following output when running npm start --production
:
> ghost@0.5.3 start /opt/fupt
> node index
ERROR: Javascript files have not been built.
Please read the getting started instructions at:
https://github.com/TryGhost/Ghost#getting-started-guide-for-developers
Error: Javascript files have not been built.
at /opt/fupt/core/server/index.js:83:31
at Object.cb [as oncomplete] (fs.js:168:19)
Before running that I ran npm install --production
and got the following output:
npm WARN engine html-to-text@0.1.0: wanted: {"node":"~0.8.0"} (current: {"node":"0.10.33","npm":"1.4.28"})
npm ERR! fetch failed https://registry.npmjs.org/debug/-/debug-2.0.0.tgz
npm ERR! registry error parsing json
npm ERR! fetch failed https://registry.npmjs.org/commander/-/commander-2.5.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/liftoff/-/liftoff-0.11.3.tgz
npm WARN deprecated set-immediate@0.1.1: Use `setimmediate` instead
> sqlite3@2.2.7 install /opt/fupt/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
[sqlite3] Success: "/opt/fupt/node_modules/sqlite3/lib/binding/node-v11-linux-x64/node_sqlite3.node" is installed via remote
connect-slashes@1.2.0 node_modules/connect-slashes
colors@0.6.2 node_modules/colors
xml@0.0.12 node_modules/xml
node-uuid@1.4.1 node_modules/node-uuid
validator@3.4.0 node_modules/validator
passport-http-bearer@1.0.1 node_modules/passport-http-bearer
βββ passport-strategy@1.0.0
showdown@0.3.2-ghost node_modules/showdown
passport@0.2.0 node_modules/passport
βββ pause@0.0.1
βββ passport-strategy@1.0.0
semver@2.2.1 node_modules/semver
bcryptjs@0.7.10 node_modules/bcryptjs
morgan@1.3.1 node_modules/morgan
βββ basic-auth@1.0.0
βββ depd@0.4.5
βββ on-finished@2.1.0 (ee-first@1.0.5)
fs-extra@0.8.1 node_modules/fs-extra
βββ jsonfile@1.1.1
βββ rimraf@2.2.8
βββ ncp@0.4.2
βββ mkdirp@0.3.5
passport-oauth2-client-password@0.1.1 node_modules/passport-oauth2-client-password
βββ pkginfo@0.2.3
βββ passport@0.1.18 (pause@0.0.1)
oauth2orize@1.0.1 node_modules/oauth2orize
βββ uid2@0.0.3
βββ utils-merge@1.0.0
βββ debug@0.7.4
downsize@0.0.5 node_modules/downsize
βββ xregexp@2.0.0
rss@0.2.1 node_modules/rss
βββ mime@1.2.11
body-parser@1.8.2 node_modules/body-parser
βββ bytes@1.0.0
βββ media-typer@0.3.0
βββ raw-body@1.3.0
βββ qs@2.2.3
βββ depd@0.4.5
βββ on-finished@2.1.0 (ee-first@1.0.5)
βββ type-is@1.5.2 (mime-types@2.0.2)
βββ iconv-lite@0.4.4
bluebird@2.3.0 node_modules/bluebird
html-to-text@0.1.0 node_modules/html-to-text
βββ underscore@1.7.0
βββ htmlparser@1.7.7
βββ optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
βββ underscore.string@2.3.3
lodash@2.4.1 node_modules/lodash
unidecode@0.1.3 node_modules/unidecode
busboy@0.2.8 node_modules/busboy
βββ readable-stream@1.1.13 (isarray@0.0.1, inherits@2.0.1, string_decoder@0.10.31, core-util-is@1.0.1)
βββ dicer@0.2.3 (streamsearch@0.1.2)
bookshelf@0.7.6 node_modules/bookshelf
βββ inherits@2.0.1
βββ trigger-then@0.3.0
βββ simple-extend@0.1.0
βββ create-error@0.3.1
βββ inflection@1.3.8
βββ semver@2.3.2
βββ backbone@1.1.0 (underscore@1.7.0)
βββ bluebird@2.0.7
express@4.9.2 node_modules/express
βββ utils-merge@1.0.0
βββ merge-descriptors@0.0.2
βββ fresh@0.2.4
βββ cookie@0.1.2
βββ escape-html@1.0.1
βββ range-parser@1.0.2
βββ cookie-signature@1.0.5
βββ vary@1.0.0
βββ media-typer@0.3.0
βββ finalhandler@0.2.0
βββ methods@1.1.0
βββ parseurl@1.3.0
βββ path-to-regexp@0.1.3
βββ depd@0.4.5
βββ qs@2.2.3
βββ on-finished@2.1.1 (ee-first@1.1.0)
βββ etag@1.3.1 (crc@3.0.0)
βββ proxy-addr@1.0.1 (ipaddr.js@0.1.2)
βββ debug@2.0.0 (ms@0.6.2)
βββ send@0.9.2 (destroy@1.0.3, ms@0.6.2, on-finished@2.1.0, mime@1.2.11)
βββ type-is@1.5.2 (mime-types@2.0.2)
βββ serve-static@1.6.4 (send@0.9.3)
βββ accepts@1.1.2 (negotiator@0.4.9, mime-types@2.0.2)
moment@2.4.0 node_modules/moment
compression@1.1.0 node_modules/compression
βββ bytes@1.0.0
βββ on-headers@1.0.0
βββ vary@1.0.0
βββ debug@2.0.0 (ms@0.6.2)
βββ compressible@2.0.1 (mime-db@1.1.2)
βββ accepts@1.1.2 (negotiator@0.4.9, mime-types@2.0.2)
express-hbs@0.7.11 node_modules/express-hbs
βββ readdirp@0.3.3 (graceful-fs@2.0.3, minimatch@0.2.14)
βββ js-beautify@1.4.2 (mkdirp@0.3.5, nopt@2.1.2, config-chain@1.1.8)
βββ handlebars@2.0.0 (optimist@0.3.7, uglify-js@2.3.6)
cheerio@0.17.0 node_modules/cheerio
βββ entities@1.1.1
βββ dom-serializer@0.0.1 (domelementtype@1.1.3)
βββ htmlparser2@3.7.3 (domelementtype@1.1.3, domutils@1.5.0, entities@1.0.0, domhandler@2.2.1, readable-stream@1.1.13)
βββ CSSselect@0.4.1 (domutils@1.4.3, CSSwhat@0.4.7)
nodemailer@0.7.1 node_modules/nodemailer
βββ public-address@0.1.1
βββ directmail@0.1.8
βββ he@0.3.6
βββ readable-stream@1.1.13 (isarray@0.0.1, inherits@2.0.1, string_decoder@0.10.31, core-util-is@1.0.1)
βββ simplesmtp@0.3.33 (xoauth2@0.1.8, rai@0.1.11)
βββ mailcomposer@0.2.12 (mime@1.2.11, follow-redirects@0.0.3, dkim-signer@0.1.2, mimelib@0.2.18)
βββ aws-sdk@2.0.5 (xmlbuilder@0.4.2, xml2js@0.2.6, aws-sdk-apis@3.1.10)
mysql@2.1.1 node_modules/mysql
βββ require-all@0.0.3
βββ readable-stream@1.1.13 (isarray@0.0.1, inherits@2.0.1, string_decoder@0.10.31, core-util-is@1.0.1)
βββ bignumber.js@1.0.1
sqlite3@2.2.7 node_modules/sqlite3
βββ set-immediate@0.1.1
βββ nan@1.1.2
knex@0.6.21 node_modules/knex
βββ tildify@0.2.0
βββ inherits@2.0.1
βββ interpret@0.3.7
βββ commander@2.5.0
βββ generic-pool-redux@0.1.0
βββ minimist@0.0.10
βββ chalk@0.4.0 (has-color@0.1.7, ansi-styles@1.0.0, strip-ansi@0.1.1)
βββ semver@2.3.2
βββ readable-stream@1.1.13 (isarray@0.0.1, string_decoder@0.10.31, core-util-is@1.0.1)
βββ mkdirp@0.5.0 (minimist@0.0.8)
βββ bluebird@1.2.4
βββ liftoff@0.11.3 (extend@1.2.1, minimist@0.1.0, resolve@0.7.4, findup-sync@0.1.3)
Do I need to downgrade Node and NPM? I have installed Node from ppa:chris-lea/node.js
Issue Analytics
- State:
- Created 9 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
JavaScript file missing when buildling - firebase - Stack Overflow
I'm using Vite as a frontend build tool. The code above works locally, but when it builds, it does NOT produce JS file...
Read more >How to Fix the Issue When Page Has Broken Javascript
Here is a tip on fixing a 404 issue: Try restoring the JS file and then editing the link on the page to...
Read more >I keep getting TS linting issues when working on plain JS file ...
Steps to Reproduce: open JS file; See import files. I keep getting TS linting issues when working on plain JS file. no extensions...
Read more >js file not being created - Builder - PsychoPy Discourse
I looked in my local folder, and while the PsychoPy file is there, there is no js file. I have tried to compile...
Read more >Error - JavaScript - MDN Web Docs - Mozilla
Runtime errors result in new Error objects being created and thrown. Error is a serializable object, so it can be cloned with structuredClone()Β ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The original issue here is a common mistake people encounter when trying to build Ghost. In order to build the files for development mode you need to run
grunt init
. If you want to also build the files for production mode, you must also rungrunt prod
after runninggrunt init
.However, the more recent comments relate to a regression, which has happened since the last release. I have raised that as a separate issue here: #5695
I debug command
node start --production
. Check function filecore/server/index.index
line 104, add codeconsole.log(location + fileName);
and try again runnode start --producction
, i see log/Users/giangnguyen/Public/ghost/core/built/assets/ghost.min.js /Users/giangnguyen/Public/ghost/core/built/assets/vendor.min.js /Users/giangnguyen/Public/ghost/core/built/assets/ghost.min.css /Users/giangnguyen/Public/ghost/core/built/assets/vendor.min.css```
notied file
ghost.min.css, i doesβt exit when you run grunt prod, it out put ghost.css, when you run grunt prod and rename ghost.css to ghost.min.css, it works for me.