Closed HWyattWilson closed 5 years ago
@hwyattwilson - could you take a screenshot of the chrome debugging console when you go to localhost:8080
I'm using mozillla firefox, and I've been able to open a non-tutorial version of openmct with it.
On Sat, Apr 28, 2018 at 12:18 PM, Deep Tailor notifications@github.com wrote:
@HWyattWilson https://github.com/HWyattWilson - could you take a screenshot of the chrome debugging console when you go to localhost:8080
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nasa/openmct-tutorial/issues/29#issuecomment-385187633, or mute the thread https://github.com/notifications/unsubscribe-auth/AYLb1yYdCyEvK-J5VE0lExQMaTechbLaks5ttJZxgaJpZM4Trd9G .
I am actually having the same problem. I have followed the steps in the tutorial so far but when viewing the js console for firefox I see the following. The problem occurs starting at part-a.
2 refers to index.html line 11
openmct.setAssetPath('node_modules/openmct/dist');
Looking into the directory node_modules/openmct/dist does not exist
I'm having the same problem: a blank page on localhost:8080. Checking the javascript console, I can see the following error
Failed to load resource: the server responded with a status of 404 (Not Found) (openmct.js)
I am not an expert on npm or javascript, but I figured maybe something went wrong with the npm install step. I got the following warnings during the npm install step:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4
However, I think npm install went correctly otherwise, so I'm not sure this is the problem.
I'm not sure if these are related, but I hope this helps.
EDIT: after searching for the file, I also tried setting the script src to "node_modules/openmct/openmct.js" (removed the dist folder), but now I end up with an error saying that it cannot find requirejs. I'm not sure if this was a step in the right direction or not, and not sure how to proceed either.
Hi all. Sorry for the delay in addressing this. This might be an npm version issue. The tutorials depend on Open MCT as a git dependency. This involves cloning the Open MCT git repository and then building it in-situ. The build step depends on the 'prepare' build stage introduced in npm 4. The workaround here is to either upgrade your npm version if you're able to, or build the Open MCT dependency manually. This is covered in this GitHub issue - https://github.com/nasa/openmct/issues/2052
^ i had the same issue, and it was resolved by updating npm as @akhenry said.
for mac os users, see this link for updating npm https://stackoverflow.com/questions/11284634/upgrade-node-js-to-the-latest-version-on-mac-os#19333717
Closing this for now, as it appears to be an npm version issue. Will reopen if folks are still having problems.
Still having this issue. xxxx@localhost:~/git/openmct$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic xxxx@localhost:~/git/openmct$ npm --version 6.7.0 xxxx@localhost:~/git/openmct$ nodejs --version v8.10.0 xxxx@localhost:~/git/openmct$ npm start
openmct@0.14.0-SNAPSHOT start /home/xxxx/git/openmct node app.js
Open MCT application running at 10.0.51.152:8080
I followed below steps as listed in tutorial: git clone https://github.com/nasa/openmct-tutorial.git cd openmct-tutorial npm install
I have nodejs version: v12.18.3 and npm version: 6.14.6 on Windows 10 laptop. When I run >>npm install, I am hitting following error.
C:\Training\openmct\openmct-tutorial>npm install npm ERR! prepareGitDep 1> npm ERR! prepareGitDep > node-sass@4.14.1 install C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-157dd498\node_modules\node-sass npm ERR! prepareGitDep > node scripts/install.js npm ERR! prepareGitDep npm ERR! prepareGitDep Cached binary found at C:\Users\mnawaz\AppData\Roaming\npm-cache\node-sass\4.14.1\win32-x64-72_binding.node npm ERR! prepareGitDep npm ERR! prepareGitDep > core-js@2.6.11 postinstall C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-157dd498\node_modules\core-js npm ERR! prepareGitDep > node -e "try{require('./postinstall')}catch(e){}" npm ERR! prepareGitDep npm ERR! prepareGitDep Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! npm ERR! prepareGitDep npm ERR! prepareGitDep The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: ... ... Not sure how to address this issue. Thanks,
Hi @mnawaz779 can you paste the whole command line output?
Hi @mnawaz779 after consulting with the team, seems we've run into this issue before. Looks like node is not in your path for running scripts.
Try: npm install --scripts-prepend-node-path
We have noticed the build failing on Windows past this point, so please let us know if you run into any more issues.
Hello, Tried >npm install --scripts-prepend-node-path Still getting the similar error. Whole error message pasted below: +++++++++++begin error screen+++++++++++
E:\0.1OpenMCT\openmct-tutorial.git\openmct-tutorial>npm install --scripts-prepend-node-path
npm ERR! prepareGitDep 1>
npm ERR! prepareGitDep > node-sass@4.14.1 install C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-60f7c3fa\node_modules\node-sass
npm ERR! prepareGitDep > node scripts/install.js
npm ERR! prepareGitDep
npm ERR! prepareGitDep Cached binary found at C:\Users\mnawaz\AppData\Roaming\npm-cache\node-sass\4.14.1\win32-x64-72_binding.node
npm ERR! prepareGitDep
npm ERR! prepareGitDep > core-js@2.6.11 postinstall C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-60f7c3fa\node_modules\core-js
npm ERR! prepareGitDep > node -e "try{require('./postinstall')}catch(e){}"
npm ERR! prepareGitDep
npm ERR! prepareGitDep Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
npm ERR! prepareGitDep
npm ERR! prepareGitDep The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
npm ERR! prepareGitDep > https://opencollective.com/core-js
npm ERR! prepareGitDep > https://www.patreon.com/zloirock
npm ERR! prepareGitDep
npm ERR! prepareGitDep Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > node-sass@4.14.1 postinstall C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-60f7c3fa\node_modules\node-sass
npm ERR! prepareGitDep > node scripts/build.js
npm ERR! prepareGitDep
npm ERR! prepareGitDep Binary found at C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-60f7c3fa\node_modules\node-sass\vendor\win32-x64-72\binding.node
npm ERR! prepareGitDep Testing binary
npm ERR! prepareGitDep Binary is fine
npm ERR! prepareGitDep
npm ERR! prepareGitDep > openmct@1.3.0-SNAPSHOT prepare C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-60f7c3fa
npm ERR! prepareGitDep > npm run build:prod
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > openmct@1.3.0-SNAPSHOT build:prod C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-60f7c3fa
npm ERR! prepareGitDep > cross-env NODE_ENV=production webpack
npm ERR! prepareGitDep
npm ERR! prepareGitDep Hash: f868c24f5c6857fc2537
npm ERR! prepareGitDep Version: webpack 4.44.1
npm ERR! prepareGitDep Time: 39838ms
npm ERR! prepareGitDep Built at: 08/22/2020 6:57:20 PM
npm ERR! prepareGitDep 11 assets
npm ERR! prepareGitDep Entrypoint openmct = openmct.js openmct.js.map
npm ERR! prepareGitDep Entrypoint espressoTheme = espressoTheme.js espressoTheme.js.map
npm ERR! prepareGitDep Entrypoint snowTheme = snowTheme.js snowTheme.js.map
npm ERR! prepareGitDep Entrypoint maelstromTheme = maelstromTheme.js maelstromTheme.js.map
npm ERR! prepareGitDep
npm ERR! prepareGitDep ERROR in ./src/plugins/themes/espresso-theme.scss
npm ERR! prepareGitDep Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
npm ERR! prepareGitDep ModuleBuildError: Module build failed (from ./node_modules/fast-sass-loader/lib/index.js):
npm ERR! prepareGitDep Error: import file cannot be resolved: "@import "~styles/vendor/normalize-min";" @C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-60f7c3fa\src\plugins\themes\espresso-theme.scss
npm ERR! prepareGitDep at Object.importReplacer (C:\Users\mnawaz\AppData\Roaming\npm-cache_cacache\tmp\git-clone-60f7c3fa\node_modules\fast-sass-loader\lib\index.js:206:19)
npm ERR! prepareGitDep at importReplacer.throw (--dev
option is deprecated. Use --only=dev
instead.
npm ERR! prepareGitDep npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! prepareGitDep npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm ERR! prepareGitDep npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm ERR! prepareGitDep npm WARN deprecated gulp-header@1.8.12: Removed event-stream from gulp-header
npm ERR! prepareGitDep npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm ERR! prepareGitDep npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm ERR! prepareGitDep npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 2
npm ERR! prepareGitDep npm ERR! openmct@1.3.0-SNAPSHOT build:prod: cross-env NODE_ENV=production webpack
npm ERR! prepareGitDep npm ERR! Exit status 2
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the openmct@1.3.0-SNAPSHOT build:prod script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR! C:\Users\mnawaz\AppData\Roaming\npm-cache_logs\2020-08-22T22_57_20_885Z-debug.log
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 2
npm ERR! prepareGitDep npm ERR! openmct@1.3.0-SNAPSHOT prepare: npm run build:prod
npm ERR! prepareGitDep npm ERR! Exit status 2
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the openmct@1.3.0-SNAPSHOT prepare script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR! C:\Users\mnawaz\AppData\Roaming\npm-cache_logs\2020-08-22T22_57_20_971Z-debug.log
npm ERR! prepareGitDep
npm ERR! premature close
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\mnawaz\AppData\Roaming\npm-cache_logs\2020-08-22T22_57_21_413Z-debug.log +++++++++++end error screen++++++++++++ My gut feeling is that I am missing some step in setting up the openmct tutorial, however I followed the instructions laid out in github. After cloning the tutorial repository I have following directory structure. +++++++++++begin tutorial dir content++++++
E:\0.1OpenMCT\openmct-tutorial.git\openmct-tutorial>dir Volume in drive E is UBUNTU Volume Serial Number is A0D4-00DC
Directory of E:\0.1OpenMCT\openmct-tutorial.git\openmct-tutorial
08/19/2020 06:45 PM
Directory of E:\0.1OpenMCT\openmct
07/30/2020 01:05 PM
I had to switch to Windows WSL/Ubuntu 18.x to make it work. Due some reason or other the latest code never worked from Windows command prompt. The npm install consistently failed. Thanks
Not sure why, but after I enter "npm start" and go to http://localhost:8080 with my browser, nothing comes up.