Hi, I'm all for homebrew in Mac, when I have time and reinstall it to avoid sudo, I'll do with homebrew for sure. I have all installed that way.
El mar., 10 sept. 2019 a las 7:26, Alex Harui (<aha...@adobe.com.invalid>) escribió: > I tried to remove node and npm and re-install it without sudo via homebrew. > > I think I got the same results as Carlos. FWIW, there is no > @apache_royale folder in node_modules. > > ~$ npm i @apache-royale/royale-js-swf@0.9.6-beta0 -g > /usr/local/bin/asjscompc -> > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/asjscompcnpm > /usr/local/bin/mxmlc -> > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/mxmlcnpm > /usr/local/bin/asjsc -> > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/asjscnpm > /usr/local/bin/compc -> > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/compcnpm > /usr/local/bin/asnodec -> > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/asnodecnpm > /usr/local/bin/externc -> > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/externcnpm > > > @apache-royale/royale-js-swf@0.9.6-beta0 postinstall > /usr/local/lib/node_modules/@apache-royale/royale-js-swf > > node dependencies/download_dependencies.js > > internal/modules/cjs/loader.js:775 > throw err; > ^ > > Error: Cannot find module > '/usr/local/lib/node_modules/@apache-royale/royale-js-swf/dependencies/download_dependencies.js' > at Function.Module._resolveFilename > (internal/modules/cjs/loader.js:772:15) > at Function.Module._load (internal/modules/cjs/loader.js:677:27) > at Function.Module.runMain (internal/modules/cjs/loader.js:999:10) > at internal/main/run_main_module.js:17:11 { > code: 'MODULE_NOT_FOUND', > requireStack: [] > } > npm ERR! code ELIFECYCLE > npm ERR! errno 1 > npm ERR! @apache-royale/royale-js-swf@0.9.6-beta0 postinstall: `node > dependencies/download_dependencies.js` > npm ERR! Exit status 1 > npm ERR! > npm ERR! Failed at the @apache-royale/royale-js-swf@0.9.6-beta0 > postinstall 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/aharui/.npm/_logs/2019-09-10T05_01_13_653Z-debug.log > > > > On 9/5/19, 9:32 AM, "OmPrakash Muppirala" <bigosma...@apache.org> wrote: > > If you have to use sudo that usually means that your node/npm is not > setup > correctly. > > Some more info here : > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmedium.com%2F%40ExplosionPills%2Fdont-use-sudo-with-npm-still-66e609f5f92&data=02%7C01%7Caharui%40adobe.com%7C94ba7a787a2d4765ca3e08d7321eae85%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637032979678297877&sdata=shG6aUIsl96Nv7fKvoHPds6OdzlEoWTzVzxaKlwtesY%3D&reserved=0 > > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fa%2F18296178&data=02%7C01%7Caharui%40adobe.com%7C94ba7a787a2d4765ca3e08d7321eae85%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637032979678297877&sdata=o4KtwJ5zaQcsNmxqLb%2Bj%2FJ5phxS9F5UhqMrnVOvw%2Bt0%3D&reserved=0 > > That said, this issue is not related to sudo or otherwise. > > But it is a good idea to not sudo anything related to npm. For > instance, > our installation scripts downloads and does a bunch of things during > the > installation. Imagine allowing a random script sudo access to your > computer. > > Thanks, > Om > > On Thu, Sep 5, 2019, 9:00 AM Alex Harui <aha...@adobe.com.invalid> > wrote: > > > Pretty sure if you use -g on MacOS you need sudo. However, I don't > think > > that's the issue here. > > I think Carlos should post his: > > - dependencies/download_dependencies.js` > > - /Users/carlosrovira/.npm/_logs/2019-09-05T09_39_50_359Z-debug.log > > > > HTH, > > -Alex > > > > On 9/5/19, 7:28 AM, "OmPrakash Muppirala" <bigosma...@gmail.com> > wrote: > > > > And oh, what is your node version? > > > > On Thu, Sep 5, 2019, 7:27 AM OmPrakash Muppirala < > bigosma...@gmail.com > > > > > wrote: > > > > > We should never have to install any npm package with sudo. > > > > > > I will dig deeper into this and see what I can do. > > > > > > Thanks for testing! > > > > > > Om > > > > > > > > > On Thu, Sep 5, 2019, 2:41 AM Carlos Rovira < > carlosrov...@apache.org> > > > wrote: > > > > > >> Thanks Harbs, > > >> that seems not to fix the problem: > > >> > > >> macbookpro:~ carlosrovira$ sudo npm i > > >> @apache-royale/royale-js-swf@0.9.6-beta0 -g > > >> > > >> Password: > > >> > > >> /usr/local/bin/asjsc -> > > >> > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/asjscnpm > > >> > > >> /usr/local/bin/asjscompc -> > > >> > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/asjscompcnpm > > >> > > >> /usr/local/bin/mxmlc -> > > >> > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/mxmlcnpm > > >> > > >> /usr/local/bin/asnodec -> > > >> > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/asnodecnpm > > >> > > >> /usr/local/bin/compc -> > > >> > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/compcnpm > > >> > > >> /usr/local/bin/externc -> > > >> > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/externcnpm > > >> > > >> > > >> > @apache-royale/royale-js-swf@0.9.6-beta0 postinstall > > >> /usr/local/lib/node_modules/@apache-royale/royale-js-swf > > >> > > >> > node dependencies/download_dependencies.js > > >> > > >> > > >> internal/modules/cjs/loader.js:582 > > >> > > >> throw err; > > >> > > >> ^ > > >> > > >> > > >> Error: Cannot find module > > >> > > >> > > > '/usr/local/lib/node_modules/@apache-royale/royale-js-swf/dependencies/download_dependencies.js' > > >> > > >> at Function.Module._resolveFilename > > >> (internal/modules/cjs/loader.js:580:15) > > >> > > >> at Function.Module._load > (internal/modules/cjs/loader.js:506:25) > > >> > > >> at Function.Module.runMain > > (internal/modules/cjs/loader.js:741:12) > > >> > > >> at startup (internal/bootstrap/node.js:285:19) > > >> > > >> at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3) > > >> > > >> npm ERR! code ELIFECYCLE > > >> > > >> npm ERR! errno 1 > > >> > > >> npm ERR! @apache-royale/royale-js-swf@0.9.6-beta0 > postinstall: > > `node > > >> dependencies/download_dependencies.js` > > >> > > >> npm ERR! Exit status 1 > > >> > > >> npm ERR! > > >> > > >> npm ERR! Failed at the > @apache-royale/royale-js-swf@0.9.6-beta0 > > >> postinstall > > >> 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/carlosrovira/.npm/_logs/2019-09-05T09_39_50_359Z-debug.log > > >> > > >> macbookpro:~ carlosrovira$ > > >> > > >> > > >> > > >> > > >> > > >> El jue., 5 sept. 2019 a las 11:32, Harbs (< > harbs.li...@gmail.com>) > > >> escribió: > > >> > > >> > Try sudo. > > >> > > > >> > > On Sep 5, 2019, at 12:24 PM, Carlos Rovira < > > carlosrov...@apache.org> > > >> > wrote: > > >> > > > > >> > > Hi Om, > > >> > > > > >> > > I tried to install now with : npm i > > >> > @apache-royale/royale-js-swf@0.9.6-beta0 > > >> > > -g > > >> > > > > >> > > I get this: > > >> > > > > >> > > Last login: Fri Aug 30 00:01:50 on ttys000 > > >> > > > > >> > > macbookpro:~ carlosrovira$ npm i > > >> @apache-royale/royale-js-swf@0.9.6-beta0 > > >> > -g > > >> > > > > >> > > /usr/local/bin/asjsc -> > > >> > > > > >> > > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/asjscnpm > > >> > > > > >> > > /usr/local/bin/asnodec -> > > >> > > > > >> > > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/asnodecnpm > > >> > > > > >> > > /usr/local/bin/mxmlc -> > > >> > > > > >> > > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/mxmlcnpm > > >> > > > > >> > > /usr/local/bin/asjscompc -> > > >> > > > > >> > > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/asjscompcnpm > > >> > > > > >> > > /usr/local/bin/compc -> > > >> > > > > >> > > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/compcnpm > > >> > > > > >> > > /usr/local/bin/externc -> > > >> > > > > >> > > > >> > > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf/royale-asjs/js/bin/externcnpm > > >> > > > > >> > > > > >> > >> @apache-royale/royale-js-swf@0.9.6-beta0 postinstall > > >> > > /usr/local/lib/node_modules/@apache-royale/royale-js-swf > > >> > > > > >> > >> node dependencies/download_dependencies.js > > >> > > > > >> > > > > >> > > internal/modules/cjs/loader.js:582 > > >> > > > > >> > > throw err; > > >> > > > > >> > > ^ > > >> > > > > >> > > > > >> > > Error: Cannot find module > > >> > > > > >> > > > >> > > > '/usr/local/lib/node_modules/@apache-royale/royale-js-swf/dependencies/download_dependencies.js' > > >> > > > > >> > > at Function.Module._resolveFilename > > >> > > (internal/modules/cjs/loader.js:580:15) > > >> > > > > >> > > at Function.Module._load > > (internal/modules/cjs/loader.js:506:25) > > >> > > > > >> > > at Function.Module.runMain > > (internal/modules/cjs/loader.js:741:12) > > >> > > > > >> > > at startup (internal/bootstrap/node.js:285:19) > > >> > > > > >> > > at bootstrapNodeJSCore > (internal/bootstrap/node.js:739:3) > > >> > > > > >> > > npm ERR! code ELIFECYCLE > > >> > > > > >> > > npm ERR! errno 1 > > >> > > > > >> > > npm ERR! @apache-royale/royale-js-swf@0.9.6-beta0 > postinstall: > > `node > > >> > > dependencies/download_dependencies.js` > > >> > > > > >> > > npm ERR! Exit status 1 > > >> > > > > >> > > npm ERR! > > >> > > > > >> > > npm ERR! Failed at the > @apache-royale/royale-js-swf@0.9.6-beta0 > > >> > postinstall > > >> > > 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/carlosrovira/.npm/_logs/2019-09-05T09_23_42_762Z-debug.log > > >> > > > > >> > > macbookpro:~ carlosrovira$ > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > El mar., 3 sept. 2019 a las 21:55, OmPrakash Muppirala (< > > >> > > bigosma...@gmail.com>) escribió: > > >> > > > > >> > >> Carlos, > > >> > >> > > >> > >> A nice way to test if your installation is working > correctly > > is to > > >> try > > >> > it > > >> > >> with the npm cli tool. > > >> > >> > > >> > >> You can install the cli using the command: > > >> > >> > > >> > >> npm i @apache-royale/cli -g > > >> > >> > > >> > >> Basically install the royale package, then install the > cli > > package. > > >> And > > >> > >> follow the instructions here: > > >> > >> > > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40apache-royale%2Fcli&data=02%7C01%7Caharui%40adobe.com%7C94ba7a787a2d4765ca3e08d7321eae85%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637032979678297877&sdata=Q4SCemz60MEw72R4tQgXuR1g%2BAhfH%2F27SRc4H6C%2Bd3w%3D&reserved=0 > > >> > >> > > >> > >> Thanks, > > >> > >> Om > > >> > >> > > >> > >> On Tue, Sep 3, 2019 at 11:11 AM Carlos Rovira < > > >> carlosrov...@apache.org> > > >> > >> wrote: > > >> > >> > > >> > >>> Hi Om, > > >> > >>> > > >> > >>> since I don't know too much about NPM, I want to know > some few > > >> things > > >> > >> about > > >> > >>> the Royale NPM version. Just uninstalled old version > > successfully. > > >> > >>> > > >> > >>> Now, I'm on Mac. if I install the new one, how this > affects my > > >> > >> environment? > > >> > >>> I suppose that my installation of repos to build from > source > > code is > > >> > >>> independent, and NPM installs mxmlc in Terminal > (command line > > >> level). > > >> > >>> > > >> > >>> Then, some easy way to give a quick test that all is > working > > ok? I > > >> > >> suppose > > >> > >>> that I must go to some example project like Tour de > Jewel and > > try to > > >> > >>> compile in terminal with mxmlc right? Can you provide a > > command > > >> line to > > >> > >> use > > >> > >>> for test for example that particular case? > > >> > >>> > > >> > >>> Thanks! > > >> > >>> > > >> > >>> > > >> > >>> > > >> > >>> El mar., 3 sept. 2019 a las 19:52, OmPrakash Muppirala > (< > > >> > >>> bigosma...@gmail.com>) escribió: > > >> > >>> > > >> > >>>> Hi folks, > > >> > >>>> > > >> > >>>> Can you please test the beta release and report any > errors > > you are > > >> > >>> seeing? > > >> > >>>> > > >> > >>>> You can test it with these commands: > > >> > >>>> > > >> > >>>> npm uninstall @apache-royale/royale-js-swf -g (in case > you > > already > > >> > have > > >> > >>> it > > >> > >>>> installed) > > >> > >>>> npm i @apache-royale/royale-js-swf@0.9.6-beta0 -g > > >> > >>>> > > >> > >>>> Thanks, > > >> > >>>> Om > > >> > >>>> > > >> > >>>> On Sun, Sep 1, 2019 at 7:52 PM OmPrakash Muppirala < > > >> > >> bigosma...@gmail.com > > >> > >>>> > > >> > >>>> wrote: > > >> > >>>> > > >> > >>>>> Just a heads up, I will be doing some test publishes > of the > > royale > > >> > >> npm > > >> > >>>>> package. I will be using the version number: > 0.9.6.beta.1 > > >> > >>> (0.9.6.beta.2, > > >> > >>>>> etc if needed) > > >> > >>>>> > > >> > >>>>> These fixes are related to these tickets: > > >> > >>>>> > > >> > >>>>> > > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fissues%2F428&data=02%7C01%7Caharui%40adobe.com%7C94ba7a787a2d4765ca3e08d7321eae85%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637032979678297877&sdata=ZRH4ggjcXZOAE7SiHKdwWeVEQQXQblZnX30QZB8G9Vs%3D&reserved=0 > > >> > >>>>> > > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fissues%2F450&data=02%7C01%7Caharui%40adobe.com%7C94ba7a787a2d4765ca3e08d7321eae85%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637032979678297877&sdata=UDXwGYqD69n7h9Fq1KlGOVjB20ak2zb1ZN2vbFGV%2BUU%3D&reserved=0 > > >> > >>>>> > > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fissues%2F231&data=02%7C01%7Caharui%40adobe.com%7C94ba7a787a2d4765ca3e08d7321eae85%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637032979678297877&sdata=Bi8Z2hYTm8I61uqdYlUEEBDBQEjLJSDyDPHVXvp39%2F8%3D&reserved=0 > > >> > >>>>> > > >> > >>>>> Thanks, > > >> > >>>>> Om > > >> > >>>>> > > >> > >>>> > > >> > >>> > > >> > >>> > > >> > >>> -- > > >> > >>> Carlos Rovira > > >> > >>> > > > https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C94ba7a787a2d4765ca3e08d7321eae85%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637032979678297877&sdata=Xoed4U85Min1ZIMl9S6H2E4QBig24vhV3ZwV7I2Y89M%3D&reserved=0 > > >> > >>> > > >> > >> > > >> > > > > >> > > > > >> > > -- > > >> > > Carlos Rovira > > >> > > > > > https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C94ba7a787a2d4765ca3e08d7321eae85%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637032979678297877&sdata=Xoed4U85Min1ZIMl9S6H2E4QBig24vhV3ZwV7I2Y89M%3D&reserved=0 > > >> > > > >> > > > >> > > >> -- > > >> Carlos Rovira > > >> > > > https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C94ba7a787a2d4765ca3e08d7321eae85%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637032979678307873&sdata=%2BKpjGoVjEG8f%2BYFoJmleF6OYDS2mRKzGJ5vNpfps%2Bk4%3D&reserved=0 > > >> > > > > > > > > > > > > -- Carlos Rovira http://about.me/carlosrovira