loopback-next icon indicating copy to clipboard operation
loopback-next copied to clipboard

Errors on fresh Install

Open wushan opened this issue 7 years ago • 8 comments

Description / Steps to reproduce / Feature proposal

when creating new apps or downloading an example with lb4 app lb4 example, these errors appears during the install progress. and off course the app can't start correctly after the errors below.

Current Behavior

Terminal Errors:

> lb4 example hello-world
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: The major version is no longer supported. Please update to 4.x or newer
npm ERR! path /private/var/www/loopback4-example-hello-world/node_modules/highlight.js/tools/build.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/private/var/www/loopback4-example-hello-world/node_modules/highlight.js/tools/build.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Expected Behavior

Installs and run the app correctly.

wushan avatar Feb 25 '19 09:02 wushan

I have the same problem. This would come from the last release of highlight.js and no loopback. If someone has a tip otherwise it will wait until highlight.js fixed that.

yoan-aln avatar Feb 25 '19 10:02 yoan-aln

I also have the same issue faced now due to highlight.js

Same issue is being discussed here : https://github.com/highlightjs/highlight.js/issues/1984

kumardasanand28 avatar Feb 25 '19 10:02 kumardasanand28

I have the same issue.

SharonItz avatar Feb 25 '19 11:02 SharonItz

@loopback/build !! I have the same Error.

vacrozet avatar Feb 25 '19 13:02 vacrozet

Hi everyone, can you post the node version? Have you tried run it with node 10 and above? I am on v10.15.1 and everything looks good.

jannyHou avatar Feb 25 '19 15:02 jannyHou

Add at your devDependencies or dependencies --> "highlight.js": "9.14.2" For resolve temporary that issue.

vacrozet avatar Feb 25 '19 15:02 vacrozet

Duplicate of https://github.com/highlightjs/highlight.js/issues/1984

raymondfeng avatar Feb 25 '19 15:02 raymondfeng

Please run npm i -g @loopback/cli and try again.

raymondfeng avatar Feb 25 '19 22:02 raymondfeng